View Single Post
Old 06-14-2010, 04:13 PM   #189
sourcejedi
Groupie
sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.sourcejedi ought to be getting tired of karma fortunes by now.
 
sourcejedi's Avatar
 
Posts: 155
Karma: 200000
Join Date: Dec 2009
Location: Britania
Device: Android
Pity, I wasn't expecting this to break so soon after I started using it.

I found a dumb-as-rocks incantation for Unix, if anyone's interested. The catch is you have to know Unix first :-). I can't tell you how to do this under Windows.

Code:
curl -o "#1.html" http://www.fanfiction.net/s/5782108/[1-2]
That's the exact command to download chapters 1-2 of story ID 5782108 from FanFiction.net. You'll get several files, e.g. 1.html and 2.html. It'll have all the FanFiction.net buttons / links etc - most of them won't work.
  • Amazingly the font, size, and "night mode" buttons still work if you open it in a web browser. Oh, and the adverts ;-).
  • For reasons unknown to man, FBReader based viewers will cleverly hide everything except the story text itself, and the "Review this Chapter" link at the end.
  • If you're unfortunate enough not to be using FBReader, and you don't like the margins or other formatting, try using the Mobile version of FanFiction.Net. Just replace "www." with "m.".
  • lynx complains about the HTML, as does the w3c validator. If you convert this to ePUB using a braindead tool that just zips up what it's given, you will get a very non-compliant ePUB. There is no guarantee it to work on your device.

Sorry if your system can't handle directories of html files. (IMO that makes it a proprietary document viewer, not an e-reader :-p). Something like Calibre may be able to convert for you (or not; see above).

You can modify the command to download chapters from any story. Replace the URL pattern with the web address of the first chapter you want. I recommend you copy+paste the address from the location bar of your web browser.

The trick to get multiple chapters at once is to manually add square brackets round the chapter number at the end, and replace the number with a range, such as [1-2] or [23-25].

FanFiction.Net don't really want you to do this, but the same applies to FLAG.
sourcejedi is offline   Reply With Quote