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)
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}):