View Single Post
Old 04-19-2012, 12:15 AM   #8
tBunnyMan
Enthusiast
tBunnyMan began at the beginning.
 
tBunnyMan's Avatar
 
Posts: 39
Karma: 10
Join Date: Feb 2012
Location: Las Vegas, NV
Device: nook Simple GlowLight
Quote:
Originally Posted by arraintxo View Post
Hi,

I've just been working on this last week and using the new REST API to fetch the article list, so I have this almos working.

I hope it helps...
Thanks! I'm still using the old method of scraping the Pocket minimal interface because I find it produces more constant results. I'm currently trying to get access to the v3 article rendering method mentioned in the API documents since it is what Pocket uses now. They are holding most of it off until everything settles.
I've written something up similar but am waiting until I can perfect it to commit it to my github, especially if they are just about to change their API.


I was looking at your code and I was wondering, Line 66-68
Code:
        index = self.API_INDEX + 'v2/get?' + self.get_auth_params()
        index += '&state=unread'
        index += '&count=' + str(self.max_articles_per_feed)
Won't this pull the NEWEST max_articles_per_feed? The API doesn't have an option to present in reverse so you need to take the list and reverse it yourself before lopping off the feed count.

The biggest reason for modding the RIL plugin in the first place was to add the functionality of presenting oldest to newest, there is a few feature regressions in your version.
tBunnyMan is offline   Reply With Quote