View Single Post
Old 09-29-2010, 11:52 AM   #201
AtomicDryad
Member
AtomicDryad began at the beginning.
 
AtomicDryad's Avatar
 
Posts: 14
Karma: 10
Join Date: Sep 2010
Device: psp, htc g1
Hiya, it seems like the commandline version hasn't worked for awhile, so I fixed it. I've also made other changes:
Supports multiple stories on commandline.
Supports story urls on commandline (instead of -i).
Supports fetching multiple stories from community page and author page urls.
The include directories are autodetected: If fflag is put in /usr/local/bin, for example, it will look for it's files in /usr/local/share/flag, /usr/local/lib/flag, or /usr/local/bin.
Default output format is now HTML. I have not tested the others but they -should- work.
Misc changes (no more chdir, etc).
Example:
fflag -i 65535 http://www.fanfiction.net/s/232323/1/whatever 424242 http://fanfiction.net/u/11/somewriter -o /tmp/whatever -i 123456
Downloads storyid 65535, 232323, 424242, all of somewriter's stories, and story 123456. All stories are saved with automatic filenames to the /tmp/whatever folder, which is created if it does not exist. If -o is '-' or unspecified, the current directory is used.
fflag -s ffnet -f html -i 321123 -o whatever.html
Old style syntax still works.
Attached Files
File Type: bz2 flag-r29mod1.tar.bz2 (6.5 KB, 193 views)
AtomicDryad is offline   Reply With Quote