suddenly I get always facebook_scraper.exceptions.LoginRequired calling get_page_info
See original GitHub issueHi folks, not reporting a bug (at least I don’t think so), just looking for help. I started using facebook-scraper yesterday, and I was able to get results using get_page_info. Today, suddenly, everytime I call that method I get the following exception with every page I try to scrape (even the ones that were working):
File "C:\ReleWant\git\nj-fb-scraper\venv\lib\site-packages\facebook_scraper\__init__.py", line 98, in get_page_info
return _scraper.get_page_info(account, **kwargs)
File "C:\ReleWant\git\nj-fb-scraper\venv\lib\site-packages\facebook_scraper\facebook_scraper.py", line 293, in get_page_info
resp = self.get(post["post_id"])
File "C:\ReleWant\git\nj-fb-scraper\venv\lib\site-packages\facebook_scraper\facebook_scraper.py", line 475, in get
raise exceptions.LoginRequired(
facebook_scraper.exceptions.LoginRequired: A login (cookies) is required to see this page
Is there any reason? Am I doing something wrong?
Using facebook-scraper 0.2.45
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think they last a year. Yes, multiple accounts might be useful depending on the scale of scraping you’re trying to do
Ok, it seems like the method
get_posts()
in the packages __init__.py works differently than the one in the FaceBookScraper class. If we use the methodget_posts()
after instantiating an instance of the class, the cookies parameter is being ignored.