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

Facebook user scraper returns no results #523

Open
GENETAY opened this issue Jul 21, 2022 · 4 comments
Open

Facebook user scraper returns no results #523

GENETAY opened this issue Jul 21, 2022 · 4 comments
Labels
bug Something isn't working module:facebook

Comments

@GENETAY
Copy link

GENETAY commented Jul 21, 2022

Hello, I have been using your package for the last two days for scrapping twitter and it worked very well!
now, I am trying to scrape facebook and it is apparently not working as smoothly. I get an empty output. Is that normal? I can't find help on the internet.

Here my code:

from snscrape.modules.facebook import FacebookUserScraper,FacebookCommunityScraper
scraper = FacebookUserScraper(username='muppets')
res = scraper.get_items()
list(res)

Output: []

I am using python version 3.8.5
Thank you for your help.

@JustAnotherArchivist
Copy link
Owner

The Muppets's Facebook page uses the new layout, which isn't supported yet by snscrape because Facebook has been very inconsistent at which layout it returned (cf. #121). It appears that they finally switched everything over by now though based on a small sample, so maybe fixing it in a sane way is finally possible (although working with Facebook always leads to insanity regardless).

@JustAnotherArchivist JustAnotherArchivist changed the title Empty Facebook scraping result Jul 21, 2022
@JustAnotherArchivist JustAnotherArchivist added bug Something isn't working module:facebook labels Jul 21, 2022
@GENETAY
Copy link
Author

GENETAY commented Jul 21, 2022

oh i see.

Thank you for your answer.
I wish i could help to fix that but i feel unconfortable to submit commits to fix it (i am poor skilled at code in general). What i can recommand to you, though, is simply to add a comment in the code to warn the users that read the code that facebook layout is inconsistant, and maybe, you can add images of the layout supported by snscrape.

Thank you for your great job still!
Edouard.

@JonasMonas
Copy link

Is there any possibility we might see an update to Facebook scrapper any time soon? :)

@liurich12138
Copy link

Try facebook-scraper, but it requires cookies

https://github.com/kevinzg/facebook-scraper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:facebook
4 participants