View Single Post
Old 02-13-2015, 01:35 PM   #3722
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
For the tech-savvy guys: In case you find yourself in the situation of suddenly wanting to follow all your stories on fanfiction.net, you can export the URLs via the FFDL icon in Calibre and then use this script. You need Python 3, the selenium module and the Mozilla Firefox browser (although with slight modifications other browsers are supported of course too). Then just call the script with a path to a file containing the exported list of URLs. Again, this is for the tech-savvy people, and I know this makes me seem like a douche, but I really don't want to be responsible for giving support for this throw-away script. Good luck!

@Jimm: I think it would be nice if you could extend the default action settings in the "GUI Options" menu of the configuration dialogue. I would like to be able to get FFDL to check the emails by simply clicking on it, instead of defaulting to the add- or update-dialogue.

EDIT: Also the current code will raise an UnicodeDecodeError if the message isn't using the UTF-8 encoding (since that is what Python in Calibre defaults to if you just call unicode, I think). You somehow need to figure out the encoding on a per-email basis and decode to Unicode accordingly. Maybe this helps, but I never really worked with imaplib in Python myself.

Last edited by cryzed; 02-13-2015 at 05:46 PM.
cryzed is offline