I can not retrieve more than 10 saved stories via API

Somehow I can not retrieve more than 9 saved stories using API. And it seemed to be working OK a week ago.

For example, I have 20 stories starred now

import requests


    r = requests.post('https://www.newsblur.com/api/login', data={'username': 'user', 'password': 'secret'})
    cookies = r.cookies r = requests.get('http://www.newsblur.com/reader/starred\_stories', cookies=cookies) 
    data = r.json() for i, story in enumerate(data['stories']):
     print i, story['story\_title']

It returns only 10 first stories. Passing data={‘page’: 2} to the request does not help either.

Could you take a look, plz?

1 Like

Try using ?page=2 in the URL.  That is, params={‘page’: 2} (not data)

Thank you. It works!