Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 98 while image_comments["media"]["comments"]["page_info"]["has_next_page"]:
- 99 end_cursor = image_comments["media"]["comments"]["page_info"]["end_cursor"]
- 100 print(end_cursor)
- 101 image_comments = json.loads(requests.get(img_url+"&max_id="+end_cursor).text)
- 102 pprint(image_comments)
- 103 print(len(image_comments["media"]["comments"]["nodes"]))
- 104 for i in range(len(image_comments["media"]["comments"]["nodes"])):
- 105 comment_count = comment_count + 1
- 106 print image_comments["media"]["comments"]["nodes"][i]["text"], comment_count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement