summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bbc26c8)
The URL for the next page was incorrect and we always got the same page, therefore it got trapped in an infinite loop.
if not page['items']:
break
if not page['items']:
break
- max_id = page['items'][-1]['id']
+ max_id = page['items'][-1]['id'].split('_')[0]
media_url = (
'http://instagram.com/%s/media?max_id=%s' % (
uploader_id, max_id))
media_url = (
'http://instagram.com/%s/media?max_id=%s' % (
uploader_id, max_id))