Anonymous 07/09/2017 (Sun) 23:31:46 No.10031 del
Here fam. This will downloads all the posts to text files. I'm sure you can figure it out from there


#!/usr/bin/env ruby
require "open-uri"
require "nokogiri"

body = Nokogiri::HTML(open("https://parahumans.wordpress.com/table-of-contents/"))
body.css("strong a").each do |link|
text = []
page = Nokogiri::HTML(open(link["href"]))
page.css("div[class=entry-content] p")[2..-2].each do |p|
p.text.gsub! "<em>" ""
text << p.text
end
title = page.at_css("title").text
puts title

Message too long. Click here to view full text.