minimaxir/facebook-page-post-scraper

Comment Scraper NameError: name 'file_id' is not defined

17waldth opened this issue · 5 comments

Getting this and not sure why:

Traceback (most recent call last):
File "get_fb_comments_from_fb.py", line 236, in
scrapeFacebookPageFeedComments(file_id, access_token)
NameError: name 'file_id' is not defined

Not sure what I need to define. I ran the group scraper and the .csv is in the same folder

file_id is prefix in csv file name.

For example: After scraping your Facebook page with id HogwartsVietnam, your file_id must be HogwartsVietnam and you need to put HogwartsVietnam_facebook_statuses.csv file in the same executing folder as well.

I don't get it. I am having the same trouble. @quyleanh
Am I suppose to download to statuses first? I was expecting somewhere I can input the post_id in the code. If not, then is it downloadning thousands of posts with thousands of comments in one csv file?

@haseebmahmud did you read the code of get_fb_comments_from_fb.py file?
Line 141.

@quyleanh So silly of me! Somehow I missed that part. Thank you and wishing you a Merry Christmas.

@haseebmahmud you're welcome. Happy Christmas!