We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: