#!/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.