-
Notifications
You must be signed in to change notification settings - Fork 635
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
get_posts returns nothing #1102
Comments
Having the same issue suddenly today. Can't get something simple like the example code you're using to work either |
Also I got my facebook account blocked. It asks my id now |
I had the same issue, I think this tool is no longer usable |
I agree. |
I too faced the same issue |
So, I guess, sadly, this tool isn't usable for now? |
I'm also experiencing the same. |
oh shoot. figured out the entire configuration finally, just to bump into the same problem -- results ARE being returned, but the fields are just none (all but the username). Anyone got any way forward? I need specifically get_profile. |
I used this code it was written via ai maybe facebook scraper selenium will help but what happened to dude yup from facebook_scraper import get_posts Initialize a list to store the first two postsfirst_two_posts = [] Iterate over the posts and append the first two to the listfor post in get_posts('BigQuax', cookies="exported-cookies.json",pages=2): Print the first two postsfor post in first_two_posts: |
Having the same issue suddenly. |
has anyone reached any solution or found a good library to scrabe facebook other than this library I really need any solution for my project |
@AbdElrahmanMostafaRifaat1432 yeah, i forked this repo and it's working correctly here : https://github.com/moda20/facebook-scraper i also forked a second repo that scrapes fb without logins, this one does less but is good enough : https://github.com/moda20/facebook_page_scraper Note: these repos are for personal use and will certainally lead to rate limiting and banning your account even is you use them too much |
Thanks, i will need to pull like once or twice a week will this be possible with this repo? |
@MadsMMP yes, it should suffice for that but don't pull more than a hundred at a time, you will get blocked by fb for sure |
@moda20 because I see alot of parameters that I cannot understand like pages and posts per pages |
Func get_posts returns nothing
Here is my code (same as one on the main page of this repo):
from facebook_scraper import get_posts
for post in get_posts('nintendo', cookies="/Users/beatrisu/Desktop/twi/1.txt"):
print(post['text'][:50])
output:
(gg) beatrisu@Savelijs-MacBook-Air twi % /Users/beatrisu/Desktop/twi/gg/bin/pyth
on /Users/beatrisu/Desktop/twi/scrap.py
/Users/beatrisu/Desktop/twi/gg/lib/python3.9/site-packages/facebook_scraper/facebook_scraper.py:912: UserWarning: Facebook says 'Unsupported Browser'
warnings.warn(f"Facebook says 'Unsupported Browser'")
get_group_info and get_profile are working ok but with some warnings.
The text was updated successfully, but these errors were encountered: