-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Article download stopped working #9
Comments
I can confirm the issue: Marcin, I do not have any experience with python and calibre, but let me know if I can help you somehow. Thanks a lot, regards, |
Thanks, I will look into that in the evening. I hope we can fix it asap. |
Ok, confirmed:
Let's see what I can do... |
Any clues? Enquiring and very appreciative minds want to know :) |
Not yet. I guess Pockets hates us right now.. I'll try again today. :( |
I sort of tried the article URL + the ajax postfix - which is how I think you get the articles? - but only on the browser, which only redirects back .. so not great help there :) . |
I think they hate everybody, the calibre stock recipe also fails :) |
anyhoo, thank you Marcin :) |
Hi, I can share what I found till now, maybe it will help somehow. I also saw how current articles download method was created. Maybe we could switch to use only methods from API and replace forbidden by Pocket's v3 API textview and download full or somehow parsed articles? |
Not successful yet in fixing. Maybe next week ;( ... |
Thanks for all the work Marcin, keep us updated! Really get good use out of and depend on this plugin :D |
@boguszk It seems that we can log in because I got names of my articles. I was able to get fc_id but still, I was not able to get it to run. I pushed the code with some attempts to solve it. Maybe someone is able to take it from here. I have to read more to fix it.
|
It's interesting that https://www.crofflr.com works. Temporary solution until we find a solution for this plugin. |
Hey, I'm so sorry. I have the super hard deadline for my PhD at the beginning of September and I can't work to fix this plugin. Maybe some of you, is able to look at it. If not, maybe we can reach the original team to ask them for help. Sorry, this is how it looks right now. |
@mmagnus best of luck with your PhD, and many thanks! I will give it a try. |
(disclaimer: python & calibre rookie) I am where @mmagnus was some days ago: It looks like the formCheck value is (now) located in the original_url_container:
However, I still can't get to https://getpocket.com/a/x/getArticle.php?itemId=1837879542&formCheck=923af088bcb279dd1c3820c502e694c2 (where 1837879542 = item id) I still get {"status":0} Despite being logged into pocket (I am testing from chrome before anything) We could contact pocket. It is true that we are using web scrapping, but they already know that: https://getpocket.com/apps/ebooks/ |
It appears the problem is that the script doesn't have the right cookies set to send to getArticle.php... because the login is failing... because they've added a reCAPTCHA challenge to the login form :( |
Pity, just now I wanted to convert my year's supply of Pocket articles to ePUB for reading on an e-reader during vacation... |
For you guys that know a bit what you are doing, which is not my case, you can contact pocket dev team directly and ask for their help at [email protected]. |
Personally I've rigged up a version of this which takes an API key with access to Pocket's protected |
@spinda let us please have it as well! |
@spinda can you make a pull request or put it anywhere. I have still two hardcore weeks of PhD writing... I can't do anything before ;( |
Hey, @spinda. It's been a long time. Maybe you could share your fix with us? |
A fix for this would be great.. |
@spinda can you help us. I just submitted my thesis ;-) I should have more time for reading, and I would love to have this plugin working! :-) |
Congrats @mmagnus! |
I can’t give up pocket. And my Kindle is basically worthless without this plugin working… :( I have fiddled with the python script myself but I can’t get it to run.
Can we test the script in a separate environment instead of running it in calibre? It’s hard to debug it if you need to run it in calibre...
|
The same question about environment. Maybe it's possible to "cut" that basic browser functional from Calibre into separate "browser host" for debug purposes? |
@jonathancardonarojas I know how you feel, I used to run this software every night, and even coded a Docker wrapper around it: https://github.com/alvaroreig/pocket2kindle However, as @mmagnus noted, https://www.crofflr.com still works. It is not as good (all the items are together, you can't split by tag, the images are worse, etc.) but you can still read your news. Regards, |
To all of you seeking a competitive fall back, You can have your content broken down into categories too: @jonathancardonarojas, apart from breaking down by tags and marking as read, @spinda Could you please share your recipe ? Off-topic: |
Oh, forgot to mention pagination. Yeah, you must provide explicit links to all of the pages of a folder. pro-tip 1
The end result on a kindle will be perfectly the same as for Pocket recipe. pro-tip 2Give a hit an url of an arbitrarily high page in your Instapaper's folder: https://www.instapaper.com/u/12345. Instead of returning HTTP error code (e.g. 404), Instapaper returns a page with no articles. That's why the recipe won't fail if you over-declare folder pages. This enables you to keep some extra pages in the config, for folders that easily gather up loads of articles, and don't check the config on every single run. For non-python folks
|
|
I’m using Pocket for a variety of reasons, also because I’m used to the Mac and Android app, and it works with 95% of all articles I want to read. I appreciate everyone’s support and suggestions to find a working alternative to Pocket, but I think we should focus the discussion back on how to get the Pocket recipe working.
I think the problem lies in the fact that you can’t get the full article content using Pocket’s API anymore. Getting the titles and tags still works. I don’t know how it was in the past, if they ditched the API or not at some point. It would be extremely frustrating if we would have to parse Pocket’s web view in order to get the article contents.
Can anyone comment on that?
|
I'm trying also to fix it. Trying to learn anything from other tools. This works https://github.com/rakanalh/pocket-cli |
Hey @mmagnus , I know I've said it already, but a couple months ago I contacted pocket support about it, and they said I could talk to the devs directly with [email protected] From experience they tend to be quite friendly and helpful. |
@Podesta Thanks. I can contact them, let's see if then can help :-) |
Dear @rayslava @caglorithm I don't know if you have been there. I just discovered the way to debug the plugin:
I see the title, so something works. I'm trying to fix parsing. |
@mmagnus, great! Thanks. I think I'll have some time next week to dive into issue. |
I tried to fiddle around with it and after getting some information about what went wrong, I'm quite sure that you are going to have to implement https://github.com/rakanalh/pocket-api if you want to make it work again. It seems to me like accessing the API without oAuth is not supported anymore. Edit: For me it looks like there is no way to access the articles themselves via API. The docs say
and the pocket-cli mentioned above also only retreives metadata and can open the articles in a webbrowser using the URL of the article, which is always Another edit for everyone who wants to debug and edit this plugin a little better than directly inside Calibre: You can oben the recipes with your preferred editor. On MacOS they are stored in Another Edit: The following method still seems to work. Could be used as a temporary workaround for anyone who depends on this plugin: https://www.reddit.com/r/kindle/comments/1wcznt/way_to_import_articles_from_pocket_to_kindle/chmnall/ Note: Makes your rss feed publicly available |
Have anyone looked at this? It's still not working :-( |
Story time. After 5+ years of not using my Kindle I decided to do a digital cleanse this holiday and just bring my Kindle for reading. It didn't turn on. Then this morning after reading some comments on an ifixit topic, it got it to load again and eventually it turned on. Awesome! So still this morning I installed Calibre, going through the ol' reading list and figured I'd like to put my extensive pocket list into my Kindle, by now you can guess where this is going, it didn't work. So this afternoon, hours later, I decided to look one more time and found the Pocket Plus plugin. Yet again a no-no. So, I'm thinking, let's see if anyone experienced this issue as well and found some little hack or something. Then I find dlo9's comment and can't believe my eyes. Perfect timing sir! Thanks! |
i can't add that to calibre4.7 |
wow, I have missed this. YEAH! This works, I will try to merge it into my plugin if I can. Thanks @dlo9 amazing work! To authorize you might just click on this: in the plugin, it gets buried into a log, at least in my case. |
Can you elaborate, @Monirzadeh it works for me, I do have Calibre 4.7 |
i update to calibre 4.8 and i can add that to my source
|
Hi there @Monirzadeh @mmagnus @dlo9 I can confirm that the fix (as merged yesterday by @mmagnus ) works for me in calibre 4.8. I had to manually create the ~/.config/calibre/custom_recipes directory though. I am missing the old sort by tags functionality. Do you think you will be able to get it back @mmagnus? Despite that, I think that this fix provides a better ebook than using crofflr, which has been my plan B all this time. Both list every article under a single section ("All articles"), but crofflr only manages to download the first image in every article, while this version does seems to provide every image for all articles. Thanks a lot! |
@alvaroreig ;-) of course. Fortunately, it was easy to hack into getting tagged articles. It works on my computer, I will try to push changes today, in a few hours! :-) I'm super excited about it. Thanks, @dlo9 for sharing your code!
|
Thank you SO much for making this!! Just installed it and tested it and it seems to be working. I really appreciate it - thank you! |
A few days ago the article download just stopped working.
The plugin will login and fetch the list of articles since I can see it processing all articles in the calibre jobs window.
But it will not download any article and just produces an empty book in calibre with a size of < 0.1 MB.
The logfile is full of entries like
Maybe pocket starts hating us (or just changes something) - see comment in code
This function will break when pocket hates us
Unfortunately I've got no python dev environment available to go deeper into it.
The text was updated successfully, but these errors were encountered: