Thread: Pocket recipe
View Single Post
Old 04-14-2013, 12:35 PM   #1
belano
Junior Member
belano began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2013
Device: kindle dx
Pocket recipe

Hi,

I've tried to use this recipe for getting articles from my pocket (formerly readitlater) account with no success

https://github.com/tbunnyman/ReadItL...in/tree/api-v3

This recipe manages to fetch the articles okay but they all contain the following text

Quote:
Looks like you're kicking it old school.
The browser version you are using is outdated and does not work with the latest version of Pocket's web app.
Is there any way to trick pocket to believe that am using a newer browser version?

I've tried manually setting the user-agent but it didn't work
Code:
kwargs['user_agent'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4'
br = BasicNewsRecipe.get_browser(self)
Thanks
belano is offline   Reply With Quote