facebook-scraper
facebook-scraper copied to clipboard
get_posts() returns nothing...
...neither using credentials, cookies, setting the language to english, trying the commandline syntax, trying a python script. I think I tried everything mentioned in the issues so far but this leads me to confirm, that this scraper stopped working. I'm on linux (same issue with Manjaro and Ubuntu 22.04) running the latest git master branch
Same problem here. Always works perfectly until now. Return no post.
Return debug like that : (correct address is hidden)
Starting to iterate pages
Requesting page from: https://m.facebook.com/HIDDEN-HIDDEN/
Parsing page response
No raw posts (
For me scraping posts works as long as I don't use cookies at all, but the number of requests is pretty limited before the IP gets blocked. My findings so far are:
- facebook-scraper uses the mobile version of facebook to retrieve posts
- without login, the mobile version can be retrieved
- with login, I get immediately redirected to the normal facebook page when trying to request the mobile version. Thus no article elements are found.
Any idea on how to fix this?
I have the same issue and realized that when using account name, the request FB_MOBILE_BASE_URL will redirect to normal facebook page and scraper can't find anything.
But everything work when i add start_url param with url using profile id: "https://m.facebook.com//profile.php?id=...".
Still need to put account name in get_posts func cause i don't want to change the core.
I dont get any results either... Hope that I understood you correctly @tuanpt
>>> for post in get_posts("nintendo", start_url="https://m.facebook.com/profile.php?id=nintendo"):
... print (post)
...
>>>
@SchmueI Did you find any workaround? I am facing the same issue.