kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.45k stars 633 forks source link

Reactions are not scraped #984

Open Roeland-Dubel opened 1 year ago

Roeland-Dubel commented 1 year ago

For a research I want to try to scrape the reactions (the emoticons) on the posts of a political party. And although these reactions are always present on the Facebook posts, when scraping it, it only works for a few cases, but for the majority I do not receive the reactions.

Code:

listposts = []

for post in get_posts("markrutte", cookies = "cookies.txt", pages=2, extra_info=True, options={"comments": True, "allow_extra_requests": True, "comment_reactors": True, "reactions": True}):

if (post["time"]) < emoticon_introduction_date:
    break

print(post["time"])
listposts.append(post)