Comments (14)
I have the same problem since December 2nd. Previously I could receive posts from one account, now I only receive empty []. Configuring start_url does not solve the problem.
I use cookies, but changing to "credentials", even with other user or different IP doesn't help.
Has Facebook made any changes?
from facebook-scraper.
But I keep getting banned. So I'm using this https://github.com/shaikhsajid1111/facebook_page_scraper instead.
No more banned message.
from facebook-scraper.
@eric09230 I figured what the issue is. it seems for my case m.facebook layout has completely changed and this repo is not made to scrap that.
the fix was to use startUrl props to specifically use the mbasic.facebook version which still works well with this repo. (start_url="https://mbasic.facebook.com/?v=timeline"). the v=timeline argument is mandatory as the repo doesn't go there on it's own.
the second issue is one with high res images of posts, the image link has changed and the repo needed a small update, i updated it on my fork : https://github.com/moda20/facebook-scraper
from facebook-scraper.
@eric09230 I tried that but it's not working for me at all, still getting the same zero posts.
from facebook-scraper.
Maybe you can try issue #1066
It's working for me.
from facebook-scraper.
@kevinzg @eric09230 It seems the code references the layout used by mbasic facebook, not the m.facebook. but the URL used to start the scrapping is m.facebook which results in completely different UI and no posts returned. Can someone look into this ?
from facebook-scraper.
Did you login properly?I also can't get any post but after I login by cookie.json I can see the post has been scrapt.
from facebook-scraper.
@eric09230 Yes i did login, i plan on trying with a different account btu i fear facebook will ban me an my actual account. i will try the other repo and see
from facebook-scraper.
if it doesn't require an API key, then how come you have to login? And where is the login info stored?
Plus that the last commit is Oct-10, how come it can be broken from then?
from facebook-scraper.
it seems for my case m.facebook layout has completely changed and this repo is not made to scrap that. the fix was to use startUrl props to specifically use the mbasic.facebook version which still works well with this repo. (start_url="https://mbasic.facebook.com/?v=timeline"). the v=timeline argument is mandatory as the repo doesn't go there on it's own.
Sorry to bug, but when you say adding a starting url works, for example how would you incorporate that in this code:
for post in get_posts('nintendo', pages=1): print(post['text'][:50])
Would you mind explaining how you are incorporating the start_url?
from facebook-scraper.
@LuciaIllari using the nintendo example, use the start url like this :
for post in get_posts(account="nintendo", start_url="https://mbasic.facebook.com/nintendo?v=timeline",
cookies='<Path to your cookies file>')) :
print(post['text'][:50])
from facebook-scraper.
Repo stopped working for me getting Facebook Page data about two weeks ago - I get no posts found now.
from facebook-scraper.
same here cant scrape a thing
from facebook-scraper.
@bluusun @Zhigalin please check this fork that i am working on : https://github.com/moda20/facebook-scraper
it's not a drop in replacement however please check the readme before trying the old examples
from facebook-scraper.
Related Issues (20)
- Using A Proxy HOT 2
- get_posts doesn't return anything HOT 1
- Facebook Scraper Stops Fetching Posts After 1,140 (should including more than 13,000) with No Next Page URL
- get_posts() not working for Pages HOT 3
- get_posts with cookies work from my MacOS but not from Ubuntu server HOT 2
- Get Events from page
- Duplicate issue
- Owner is not solving any issues/accepting PRs HOT 6
- Sometimes invalid post image links are produced
- Reactor count = none
- General question
- Enable running on Apify cloud platform
- No raw posts in get_posts HOT 18
- WARNING:facebook_scraper.page_iterators:No raw posts (<article> elements) were found in this page. HOT 7
- post_id = None HOT 2
- Temporarily Blocked Issue. Hope "sleep" parameter could be done asap.
- Scraping with Cookies return Nothing HOT 3
- get_posts are not working HOT 3
- Login Fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-scraper.