![]() |
#3721 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Email Fetch Test Version
Here's another test version that improves on the Email story url retrieval.
This version will save your email password if you want, or save it only for a session, or not save it at all. I've also added some verbiage to explain the risk a bit more. I'm open to suggestions on wording. Last edited by JimmXinu; 02-15-2015 at 10:26 AM. Reason: Remove obsolete test versions - replaced by newer test or released version. |
![]() |
![]() |
#3722 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
#3723 |
e-Bibliophile
![]() Posts: 60
Karma: 10
Join Date: Jun 2009
Location: California
Device: Paperwhite 1-3, Kobo AuraHD, Boox Afterglow2
|
Since cryzed remarked on it, I figured I'd note that I noticed the unicode error too, but it was on some really, really old fanfiction stuff that I had wanted to get a bulk list for, then clean it up and get the stories I had on my list but hadn't read in a really long time. Mostly it was annoying because when it caused the error everything that was being downloaded was 'lost' and I had to start again, and it had already marked anything before the error as read.
When it didn't work I just put it off, since there was no real need to support it for ff.net stuff that old. However, now that I think about it, there may be other site update emails that will cause the problem. If it matters, for fanfiction.net stuff is pre mid-Sept 2006 and was basically nailing errors on things like: ' or " or * along with some of the odder characters (IE: Æ) when they were in the text. Edit:Also, Cryzed, thanks for the code. I'm going to figure it out and probably use it. At one point there was a simple html that you could insert the story ID into and use that as a direct link, as long as you were logged into ff.net. I know I have seen it mentioned before. I don't know what it is though. But it will be damn useful to be able to do it in bulk again when I get time to sit down for a while to use your code. Last edited by mehetabelo; 02-14-2015 at 08:48 PM. |
![]() |
![]() |
#3724 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
I'm glad it's useful to someone besides me, and yes there's probably some easier way to do it but this is what came to mind first.
Again, using it should be relatively easy: Install Python 3 (make sure to enable "Add python.exe to search path"), execute "pip install selenium" on the command-line and then run the script with "python path-to-script.py path-to-urls.txt". A Firefox instance should open and automatically navigate to the fanfiction.net login page, prompting you to login. Afterwards simply press enter when the command-prompt is focused and it should start doing its thing while you can just minimize both, the Firefox instance and the command-prompt. |
![]() |
![]() |
#3725 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
FYI, I don't look at the thread except when I get notices about new posts. So when you edit an old post, odds are I'm not going to see it. Like happened this time until mehetabelo replied.
I need to see the unicode error, or preferably have an email that causes it, before I can do anything about it. Quote:
|
|
![]() |
![]() |
#3726 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
Thanks for the hotkey tip, I suppose that is what I will be doing. Regarding the traceback: I didn't have the error myself, but I am almost entirely sure it happens in line 218 in fanficdownloader.geturls, when calling get_urls_from_text and then finally in line 125 where you use unicode(). I remember seeing "UnicodeDecodeError 0x4e is not a valid continuation byte" or some such (I gave support to someone via TeamViewer) -- clear signs that the encoding didn't match (UTF-8). According to the docs get_payload returns:
Quote:
|
|
![]() |
![]() |
#3727 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Can I create a custom column that picks up the kudos and hits from AO3?
Thanks |
![]() |
![]() |
#3728 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Attached is a test version that adds that plus some other tweaks to Email fetch--mostly changes to verbiage. Last edited by JimmXinu; 02-21-2015 at 11:05 AM. Reason: Remove obsolete test versions - replaced by newer test or released version. |
|
![]() |
![]() |
#3729 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
#3730 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2015
Device: Kindle Paperwhite
|
Hi all, I don't know if it is due to the update or something else - I have recently downloaded several files and found when reading on my kindle (paperwhite) I am unable to continue to the next page (it doesn't allow me to press to next page). This has happened on 4 separate occasions.
- I tried pressing manually the next page number and it shows garbled text (and a lot of overlapping text), then it repeats the paragraph and I'm still unable to continue. (e.g. I'm stuck on page 199 so I manually go to page 200). - Around 5 pages later it starts working as normal, however 5 pages of text are skipped. (Page 205 is normal) - I've tried recreating the mobi and same thing happens - I've tried creating epub then converting to mobi and it doesn't work - the file seems to work fine on the computer (calibre). I'm not sure if this is an issue with: - my kindle - the plugin - the file itself If anyone knows anything about this and a fix that would be great. Thank you EDIT: Found a similar situtation in past post so will try it. EDIT 2: When I convert from epub to mobi, the converted file on kindle is just a blank white screen. EDIT 3: When I convert from epub to AZW - success! Last edited by aehli; 02-15-2015 at 07:39 PM. Reason: found issue in past post - resolved when converting to AZW from epub |
![]() |
![]() |
#3731 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
How do I get rid of the tag that says Fanfiction in every story?
I've tried looking through the settings but I can't find it. Edit: I've also added the following in my personal.ini but the tag still shows up. Quote:
Last edited by Tanjamuse; 02-16-2015 at 04:42 AM. |
|
![]() |
![]() |
#3732 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50
Karma: 2652
Join Date: Jan 2014
Device: Samsung Galaxy J2
|
There is no _ in the code so just correct it under defaults to 'extratags' and it should work.
|
![]() |
![]() |
#3733 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I can still see the Fanfiction Tag.
Edit: It works now ![]() Do you by any chance know how to make an url clickable? Like the one I have in the bottom for the story? Last edited by Tanjamuse; 02-16-2015 at 05:21 AM. |
![]() |
![]() |
#3734 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
I think this question came up a few times before, and it's currently not possible in Calibre IIRC.
Last edited by cryzed; 02-16-2015 at 11:15 AM. |
![]() |
![]() |
#3735 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
|
I'm trying to setup a custom column to download AO3's kudos into and I keep getting the following error message:
Code:
Bad Al Hamdu li-llah (All praise is due to Allah) fresne invalid literal for float(): 15.0 kudos=>#kudos http://archiveofourown.org/works/37820 This is the line I added to my personal.ini under AO3: kudos=>#kudos Any idea what I'm doing wrong? ![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 100 | 07-10-2025 08:50 AM |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1844 | 05-25-2025 11:24 AM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1124 | 04-18-2025 09:19 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |