Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all_stories = []
- florida_collection_id = 38379430
- stories_per_page = 100
- last_id = 0
- more_stories = True
- while more_stories:
- story_page = mc.storyList('(puppy OR puppies) AND tags_id_media:{}'.format(florida_collection_id),
- 'publish_date:[NOW-30DAY TO NOW]', last_processed_stories_id=last_id,
- rows=stories_per_page)
- last_id = story_page[-1]['processed_stories_id']
- more_stories = len(story_page ) == stories_per_page
- all_stories += story_page
- print(len(all_stories))
Add Comment
Please, Sign In to add comment