News for hackers. Stuff that matters.
Re:Hacker News Offline Reader for the iPhone / iPod touch by eob on Wednesday March 24, 2010 @10:40AM (#1215774)
Would you mind sharing the strategy you took to storing the sites offline?

I assume you grepped through the HTML source for external references (stylesheet, image, etc), downloaded each one of those, and then re-wrote the link before saving to disk?

Re:Hacker News Offline Reader for the iPhone / iPod touch by crc5002 on Wednesday March 24, 2010 @11:29AM (#1215916)
I think there are several tools and libraries available for this job. E.g.:

  wget --mirror -p --convert-links http://www.example.com
Re:Hacker News Offline Reader for the iPhone / iPod touch by toni on Wednesday March 24, 2010 @11:43AM (#1215959)
That will mirror the whole site. If you are going to mirror a single page, a more sane command would be:

  wget -r -l 1 -Ppath/to/folder --convert-links http://www.example.com/
Re:Hacker News Offline Reader for the iPhone / iPod touch by christo16 on Wednesday March 24, 2010 @12:36PM (#1216122)
"wget" is not installed on a iPhone. You would use something like NSURLRequest/NSURLConnection.
Re:Hacker News Offline Reader for the iPhone / iPod touch by hexley on Wednesday March 24, 2010 @07:19PM (#1217171)
It's installed on my iPhone ;)
Re:Hacker News Offline Reader for the iPhone / iPod touch by hexley on Wednesday March 24, 2010 @07:18PM (#1217170)
It's installed on my iPhone ;)
Re:Hacker News Offline Reader for the iPhone / iPod touch by grinich on Thursday March 25, 2010 @06:55AM (#1218116)
Three20 has a killer HTTP disk cache.

http://github.com/facebook/three20