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.

`"comment_reactors": True` still results in `"comment_reactors": "<generator object PostExtractor.extract_reactors at 0x7f1fca7f4a40>",`

See original GitHub issue

Hello,

I am trying to write to json a post’s comments and all reactions - including comments’ reactors. I have set "comment_reactors": True. Still in the post dump I get a few fields such as "comment_reactors": "<generator object PostExtractor.extract_reactors at 0x7f1fca7f4a40>", although for others I actually get as expected:

            "comment_reactors": [
                {
                    "name": "Sara James",
...

Did I hit a limit in the number of nested levels the scrapers is able to get?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
frabacommented, Oct 26, 2021

@neon-ninja Yep, that worked. I don’t get a generator object anymore. Thanks!

1reaction
neon-ninjacommented, Oct 26, 2021

@fraba I get the feeling you’re not actually updating your local copy of the library. Try run pip uninstall facebook-scraper twice first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Generators and yield in Python
In this step-by-step tutorial, you'll learn about generators and yielding in Python. You'll create generator functions and generator expressions using ...
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