66 points · by kylec · 18y ago · 39 comments
742 make
753 something
1589 people
719 want
fyi, here's the Ruby code for grabbing the text of all the essays: require 'open-uri'
require 'hpricot'
text = ""
listing = Hpricot(open("http://www.paulgraham.com/articles.html"))
(listing/"font"/"a").each do |a|
url = a.attributes["href"]
puts url
essay = Hpricot(open("http://www.paulgraham.com/"+url))
essay.search("script").remove
essay.search("link").remove
essay.search("meta").remove
essay.search("style").remove
text += essay.inner_text.gsub(/[\n\r]/, " ") + " "
end
File.open("pg.txt", 'w') { |f| f.write(text) }An image is enough.
I think some people might be reading too much into the intent of the author.
Nothing against PG. Just curious.
>Do you think 23 year old PG would be following someone like 2008 PG this obsessively
I'm sure there's a 23 year old "PG" who follows PG right now.
Yes, especially if he's giving stock tips from the future. ;)