question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem getting reactors

See original GitHub issue

This program snippet

from facebook_scraper import get_posts
from pprint import pprint
import sys

cookie_file = 'facebook_cookies.txt'

def get_post_reactors(post_id):

    post = next(get_posts(post_urls=[post_id], cookies=cookie_file,
                          options={'allow_extra_requests': False, 'reactors': True, 'HQ_images': False}))

    return post.get('reactors', None)

post_ids = sys.argv[1 :]

for post_id in post_ids:
    print(post_id)
    pprint(get_post_reactors(post_id))

usually works to get the reactors to a given post like this python reactors.py 10224355198279890 But on some posts it doesn’t return the reactors. For example, this python reactors.py 10224039043141034 and this python reactors.py 10217951702498185 both return none of the reactors for me, and I have not been able to figure out why.

Do you have any idea what the problem might be?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
curiousier-georgecommented, Dec 11, 2021

That worked! Thank you.

1reaction
curiousier-georgecommented, Dec 6, 2021

I hope my bug reports don’t actually sound like complaining. 😊 facebook-scraper is a great project and very well done. Thank you! I appreciate it a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with Nuclear Reactors - Hyperphysics
Concerns about the safety of nuclear fission reactors include the possibility of radiation-releasing nuclear accidents, the problems of radioactive waste ...
Read more >
Smaller reactors may still have a big nuclear waste problem
The main problem with small modular reactors is the same as their bigger cousins: steep cost. We have now seen generations of nuclear...
Read more >
Fixing EDF's reactors corrosion mystery to take several years ...
EDF faces delays and budget over-runs on new nuclear plants in France and abroad, and corrosion problems in some of its ageing reactors....
Read more >
Small Nuclear Reactors Still Have a Big Waste Problem
Reactors produce energy by firing neutrons at uranium atoms, causing them to split.
Read more >
Smaller Reactors May Still Have a Big Nuclear Waste Problem
With a higher concentration of fissionable atoms in the waste, its “critical mass”—that is, the amount of material to sustain a chain reaction— ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found