Closed izzyjere closed 2 years ago
Hello @izzyjere how do you resolve the problem. When i run the script im still getting the error. Also @shaikhsajid1111 there some pages im still having "No posts were found!". Please let me now how can I fix these two problems.
Thx!
@LChito do you mind sharing one of those pages so I can recreate the issue?
@shaikhsajid1111 Hello, sorry for the late. This 2 pages I used that show me that problems:
Hey, I've checked the issue.
If you're having an issue with this scraper, consider running that page in headful mode by passing headless=False
in the constructor of Facebook_scraper
. Like so, crawler = Facebook_scraper("FarmaciasSanRafaelYLibreriasMarcela", posts_count=10, browser="firefox",headless=False)
Sorry @shaikhsajid1111 can you show me how I have to put this code on Python. Also, I have to update the version in my repository?
Just pass headless=False in the Facebook_scraper like I have mentioned in the code above. While running the code the browser window wil open and you can see what's really happening. Example:
crawler = Facebook_scraper("FarmaciasSanRafaelYLibreriasMarcela", posts_count=10, browser="firefox",headless=False)
data = crawler.scrap_to_json()
print(data)
BTW, are you using different Facebook language?, This crawler shall work with English(UK)
@shaikhsajid1111 Maybe it continue happen because I have the facebook in Spanish. How can I change de language?
I'm still having the problem 😞 were do you download th firefox driver? Because I'm using Chormedriver
Logs are still same like the one you posted screenshot above?, I mean I changed logs format but in your screenshot shows still the old format
@shaikhsajid1111 can you show me? Because I really don't undertstand you right now, im sorry 😢
When you run the crawler, is it still printing the same thing in same format?, Or the format looks different?
It's the same one
I have couple of reasons why it may not be working,
pip3 install facebook-page-scraper
What's the newest version to install?
You can refer this https://pypi.org/project/facebook-page-scraper/4.0.0/
THANK YOU SO MUCH! Finally it works! Only the reactions doesn't works properly.
Reactions might not be working because it finds reaction by keywords like "50 Cares", so If it's not in English you will get 0 as the output. That's the very reason I was suggesting to use English
@shaikhsajid1111 I already change de language to English UK in my facebook like the personal but in the scrapper I continue looking it in spanish, what changes I have to do?
It is happening probably because of the region. I even face the same issue, I fix it by inserting en-gb
at the prefix of the link so it look something like this https://en-gb.facebook.com/
it works now