minimaxir / facebook-page-post-scraper

Data scraper for Facebook Pages, and also code accompanying the blog post How to Scrape Data From Facebook Page Posts for Statistical Analysis
2.12k stars 663 forks source link

different page_id and file_id? #109

Closed nandac06 closed 6 years ago

nandac06 commented 6 years ago

what different between page_id at get_fb_post_page with file_id at get_fb_comments_from_fb ? I want to crawl page fb and the comments on that page and i dont understand how to combine that. When i run get_fb_comments script i get error like this. Traceback (most recent call last): File "get_fb_comments_from_fb.py", line 232, in scrapeFacebookPageFeedComments(file_id, access_token) File "get_fb_comments_from_fb.py", line 187, in scrapeFacebookPageFeedComments sub_comment, status['status_id'], comment['id']) File "get_fb_comments_from_fb.py", line 93, in processFacebookComment comment_author = unicode_decode(comment['from']['name']) KeyError: 'from'

rlorenz123 commented 6 years ago

I am having the same problem with the same error message.