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

Dont get commenter_id in comments #53

Open
Chinok08 opened this issue Apr 18, 2024 · 0 comments
Open

Dont get commenter_id in comments #53

Chinok08 opened this issue Apr 18, 2024 · 0 comments

Comments

@Chinok08
Copy link

I'm trying to get the commenter_id of each comment but it returns null

from facebook_scraper import get_posts
import json

cookies = None
with open('./mbasicHeaders.json', 'r') as file:
cookies = json.load(file)

for post in get_posts('mazdamexico', pages=1,
base_url="https://mbasic.facebook.com",
start_url="https://mbasic.facebook.com/mazdamexico?v=timeline",
options={"comments": True, "progress": True},
cookies=cookies):
json_data = json.dumps(post, default=str, indent=4)
print(json_data)

{
"comment_id": "723592659845668",
"comment_url": "https://facebook.com/723592659845668",
"commenter_id": null,
"commenter_url": "https://facebook.com/Beiazaay?eav=AfYW0KeHiHTOlfDUOQ0I6r6wt7ShCZSDfOGYnMbgpuZLdC4tH_DomsyG40mN9hY7uvU&rc=p&refid=52&__tn__=R&paipv=0",
"commenter_name": "Beia Zaay",
"commenter_meta": null,
"comment_text": "Que chulada \ud83d\ude0d",
"comment_time": null,
"comment_image": null,
"comment_reactors": [],
"comment_reactions": null,
"comment_reaction_count": "1",
"replies": []
},

Do I have something wrong?

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

1 participant