-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't get the full commnets, only 30~ #490
Comments
Set your Facebook language to English, then re-export your cookies. Also, what post id are you having this problem with? Is it a video post? |
the id is 4392606570798592 and it is not a video : ) |
setting the facebook language to english worked for me!! |
Hello, I'm experiencing the exact same problem. I can only extract 30 comments from the post 10157405244133520 with my code:
I have tried changing the language by adding the following:
but I'm still only getting 30 comments. Any help would be much appreciated, and thank you for this repo. |
Setting that cookie does nothing, you need to set your language on the Facebook end |
@neon-ninja I changed my facebook language and extracted the cookie.json using EditThisCookie, but I'm still only getting 30 comments, while the post has 400+ comments (not just replies). The 'locale' is set to 'en_US', any suggestions? |
This is working fine for me, the code: post = next(get_posts(post_urls=[10157405244133520], cookies="cookies.json", options={"comments":True, "progress": True}))
print(post["comments"], len(post["comments_full"]), sum(len(c["replies"]) for c in post["comments_full"])) outputs: 301 158 142 |
If I run your code above, I get the error:
If I try to upgrade to latest master:
Then I get the error:
|
I'm running a Docker container. I'm able to install the package with:
But not with:
Seems like the problem is with my end, I'll have to do some more debugging. SOLUTION: Turns out demjson is no longer possible to install on python3 when setuptools >58.0.0 is used.. So I installed setuptools as 57.5.0, then I installed demjson==2.2.4, and then I was able to install the latest version of facebook-scraper with:
I'm now able to get all comments. |
Thanks for the link. This commit (509a7ba) upgrades from demjson to demjson3 |
I'm getting this same problem for comments in a video post. My Facebook's language is english and I am with the latest version of master branch. The get_posts call is:
and Any ideas on what am I doing wrong here, or there is a problem up with comments in video posts? |
Try 1d87116 |
It works! Amazing, thanks! |
Traceback (most recent call last): Process finished with exit code 1 |
Make sure you have a cookies.json file in your working directory, extracted from your browser as per the readme |
`posts = facebook_scraper.get_posts(
post_urls=[url],
options={
"comments": True,
"progress": True,
},
cookies = cookies,
extra_info=True
)
post = next(posts)
print(post)
for n, cmt in enumerate(post['comments_full']):
print(n, cmt)
print(len(post['comments_full']))`
with this code, I'm only available to see 30 of comments.
and I got an warning message about locale, which is about en_US is best but I'm in ko_KR
Am I missing something??
The text was updated successfully, but these errors were encountered: