Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Recipe no longer working #15

Closed
BenoitLBen opened this issue Nov 11, 2013 · 7 comments
Closed

Recipe no longer working #15

BenoitLBen opened this issue Nov 11, 2013 · 7 comments
Assignees

Comments

@BenoitLBen
Copy link

Hello (and thank you for maintaining this recipe),

I've just tested (and failed to use) your Calibre recipe for Pocket, using calibre 1.10.0 and either the built-in pocket recipe or the latest version from this repo.

It looks like the problem is due to pocket changing something, making the page parsing fail.
Here is a partial log (in French, sorry):

1% Récupération des flux…
1% Obtient les flux à partir de la page d’index
1% Essaie de télécharger la couverture…
1% Génération du masthead…
Synthesizing mastheadImage
1% Commence le téléchargement [processus 5]…
Failed to download article: Merge ahead? Why it’s not time to converge your networks from http://getpocket.com/a/read/477747788
Traceback (most recent call last):
File "site-packages/calibre/utils/threadpool.py", line 95, in run
File "site-packages/calibre/web/feeds/news.py", line 1109, in fetch_obfuscated_article
File "", line 155, in get_obfuscated_article
File "", line 148, in get_textview
KeyError: 'article'

4% Impossible de télécharger l’article : Merge ahead? Why it’s not time to converge your networks

Do you have any idea of where this problem comes from ?
Thank you.

@sgillf
Copy link

sgillf commented Nov 15, 2013

I too am having this issue.

Here is my log:

Failed to download article: Meet the Canadian who just became Britain’s top central banker from http://getpocket.com/a/read/256765779
Traceback (most recent call last):
File "site-packages\calibre\utils\threadpool.py", line 95, in run
File "site-packages\calibre\web\feeds\news.py", line 1109, in fetch_obfuscated_article
File "", line 155, in get_obfuscated_article
File "", line 148, in get_textview
KeyError: 'article'

Thanks!

@onlyhavecans
Copy link
Owner

I have also received a few emails about this. It seems pocket has changed everything up again

Thanks so much for making the Pocket Recipe, it's super useful! However, lately it just downloads the cover and table of contents, but no articles. Any thoughts on how to fix?

also

recipe for calibre you wrote for compiling ebooks from articles from pocket (getpocket.com) stopped working recently. I get the following error in the log for each article:

Traceback (most recent call last):
File "site-packages/calibre/utils/threadpool.py", line 95, in run
File "site-packages/calibre/web/feeds/news.py", line 1109, in fetch_obfuscated_article
File "", line 155, in get_obfuscated_article
File "", line 148, in get_textview
KeyError: 'article'
I also contacted pocket, because this may be due to an api change. Do you have any ideas?

@ghost ghost assigned onlyhavecans Nov 15, 2013
@tvkeller
Copy link

Hello community,

I got an answer from pocket support regarding the question about the problem. Maybe it is of help to somebody.

Alexandra (Employee) @ Nov 18, 2013 09:10AM PST
Thank you for contacting Pocket Support and I’m so sorry for the delay!

There were no changes on our end which would break this. Please reach out to Calibre support for help. If this does not work, I’d suggest looking at a service called Crofflr instead, which is more actively developed and has deeper Pocket integration: http://www.crofflr.com

@topranks
Copy link

Hi!

GetPocket obviously changed something that cannot be correct.

Anyway I am getting similar issues as the first set of posters:

Failed to download article: Man (65) dies after being found stabbed in his apartment from http://getpocket.com/a/read/477068954
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/utils/threadpool.py", line 95, in run
(request, request.callable(_request.args, *_request.kwds))
File "/usr/lib/calibre/calibre/web/feeds/news.py", line 1063, in fetch_obfuscated_article
path = os.path.abspath(self.get_obfuscated_article(url))
File "", line 158, in get_obfuscated_article
File "", line 151, in get_textview
KeyError: 'article'

Many thanks for all the hard efforts so far... just posting in case the error is of any use.

Cathal.

@omairabdullah
Copy link
Contributor

pls check the pull request "fix the textview formCheck regex" for fix

@onlyhavecans
Copy link
Owner

Horray! thank you @omairabdullah

@topranks
Copy link

Thank you so much @omairabdullah! This means so much to me, my elderly father has very poor eyesight and using Pocket / this plugin is the only way I can get his favourite newspaper so he can read (with huge font) on his Kindle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants