You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're reporting a bug, please include a minimal working example (MWE, reprex) to reproduce the bug. The code should include the account or post ID that you're having the problem with, and should be runnable. Use python syntax highlighting as per https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting (```python). Please also enable debug logging as per the below example. Include the output in your issue. Please also include which version of facebook-scraper you're using. You can use pip freeze | grep facebook-scraper to check. Example:
When using the below code to fetch a post, comments and likes are incorrectly returned as 0. I am using the latest master branch as at commit 168a245.
fromfacebook_scraperimportget_posts, enable_loggingimportloggingimportpprintenable_logging(logging.DEBUG)
forpostinget_posts(post_urls=[306426417518211]):
print(f"Comments: {post.get('comments')}, Likes: {post.get('likes')}") # Both comments and likes are 0
If you're reporting a bug, please include a minimal working example (MWE, reprex) to reproduce the bug. The code should include the account or post ID that you're having the problem with, and should be runnable. Use python syntax highlighting as per https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting (```python). Please also enable debug logging as per the below example. Include the output in your issue. Please also include which version of facebook-scraper you're using. You can use
pip freeze | grep facebook-scraper
to check. Example:When using the below code to fetch a post, comments and likes are incorrectly returned as 0. I am using the latest master branch as at commit 168a245.
Output:
The text was updated successfully, but these errors were encountered: