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

the tool returned false information(such as: likes, comments) #143

Open
TADK2808 opened this issue Dec 2, 2020 · 7 comments
Open

the tool returned false information(such as: likes, comments) #143

TADK2808 opened this issue Dec 2, 2020 · 7 comments

Comments

@TADK2808
Copy link

TADK2808 commented Dec 2, 2020

Hello everyone,
I use this command:
facebook-scraper --filename nintendo_page_posts.csv --pages 1 chelseafc --encoding utf-8 ( or nintendo)
informantion about likes, comments is not true compared to on facebook.com/chelseafc (or facebook.com/nintendo).
Please help!

@benjamin-awd
Copy link

I'm facing a similar issue -- likes and comments don't seem to match up with posts on the actual page.

@kevinzg
Copy link
Owner

kevinzg commented Dec 11, 2020

Have you compared with the mobile Facebook version?
Sometimes the regular version and the mobile one show a different number of likes and comments.

@benjamin-awd
Copy link

benjamin-awd commented Dec 11, 2020

Ah okay the likes on the mobile Facebook version match up!

Comments don't seem to match though -- for example this post shows 1.2k comments but the scraper only shows 615 comments. I've cross-checked this on my mobile device.

@gkovacsp
Copy link

gkovacsp commented Dec 23, 2020

I'm facing the same issue.
Both the mobile and desktop versions (opened in a browser) show the same number of likes, but it is not the same this scarper extracts.
You can easily try it for example on the "facebook.com/www.sivananda.hu" page.

@mhkhung
Copy link

mhkhung commented Jan 3, 2021

The numbers are correct if you use private window without logging into fb..

@gkovacsp
Copy link

gkovacsp commented Jan 4, 2021

I guess it means Facebook does not want to give away the numbers without a proper API access.

@neon-ninja
Copy link
Collaborator

neon-ninja commented May 19, 2021

The differences could be likes vs all reaction types, and top level comments vs top level comments + replies. The example of https://www.facebook.com/Nintendo/photos/a.120520318032430/3685238708227222 given above seems to work now:

posts = get_posts(
    post_urls=["https://m.facebook.com/Nintendo/photos/a.120520318032430/3685238708227222"],
    cookies = "cookies.txt"
)

for post in posts:
    print(post["comments"])

returns 1611

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

6 participants