facebook-scraper: reactors no longer being returned
Just today, reactors stopped being returned for me. The following program exhibits the problem.
from facebook_scraper import get_posts, set_user_agent
from pprint import pprint
import sys
cookie_file = 'facebook_cookies.txt'
set_user_agent("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
post_ids = sys.argv[1 : ]
for post_id in post_ids:
post = next(get_posts(post_urls=[post_id], cookies=cookie_file,
options={'allow_extra_requests': False, 'reactors': True}))
pprint(post)
When I invoke this as
python reactors.py 10158741881073601
the reactors field returned is None, although there are actually reactors to the post. It was working until today.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15
Yes! It works great now. Thank you so much!
I see - try https://github.com/kevinzg/facebook-scraper/commit/c41e14e1c8271ae82d2e981d64bf8cd21db08a85
Yes, works great! Thank you!