Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get Comments and reactions ? #132

Closed
nassera2014 opened this issue Oct 22, 2020 · 7 comments
Closed

How to get Comments and reactions ? #132

nassera2014 opened this issue Oct 22, 2020 · 7 comments

Comments

@nassera2014
Copy link

Hello,
Thank you so much for your great work, i get posts , but i failed to get comments of posts ? and reactions ?
can you help me pleaase !!
i get this error when i try to get reactions :
more_info_post = extractors.extract_reactions(post)
AttributeError: module 'facebook_scraper.extractors' has no attribute 'extract_reactions'

when i execute this code :
for post in get_posts('fanpage'):
more_info_post = fetch_share_and_reactions(post)
print(more_info_post)

Thank you, this is my email : [email protected].

@GintamaYu
Copy link

that function is for internal use only, the comment for usage in code is old version
you need to add a parameter in get_post, which is extra_info

@gonzalo-gongora
Copy link

that function is for internal use only, the comment for usage in code is old version
you need to add a parameter in get_post, which is extra_info

Where do I have to add the 'extra_info' line? Do I have to modify any file from the facebook-scraper folder?

@GintamaYu
Copy link

GintamaYu commented Nov 20, 2020

for example:
for post in get_posts('nintendo', pages=1,extra_info=True)
but sometimes it doesn't work properly, like sometimes I can only get reactions from a post that includes video, and idk why

@nassera2014
Copy link
Author

Thank you for your response, yes i arrived to collect reactions using 'extra_info' parameter,,but i need the comments for each post , do you have any idea how can i extract them ? thank you.

@gonzalo-gongora
Copy link

for example:
for post in get_posts('nintendo', pages=1,extra_info=True)
but sometimes it doesn't work properly, like sometimes I can only get reactions from a post that includes video, and idk why

The extra_info starts acting up when analyzing long sets of data for me.
The CLI usage is also funky when I try to create a .csv for data sets > 5 pages

@GintamaYu
Copy link

Thank you for your response, yes i arrived to collect reactions using 'extra_info' parameter,,but i need the comments for each post , do you have any idea how can i extract them ? thank you.

I think this is the most helpful one https://github.com/rugantio/fbcrawl
its good at crawling comments, but its crawling post functions is kinda broken

@neon-ninja
Copy link
Collaborator

As of #194 and #188 this is now possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants