kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.45k stars 633 forks source link

Unable to get Facebook Post (using cookies) via scraper #1015

Open fashan7 opened 1 year ago

fashan7 commented 1 year ago

I was feeding the cookies to the scraper to get some post details from the following pages but it returns None, @kevinzg or @neon-ninja or @cedriferitan Can you please help me out with this issue... Am I doing anything wrong with the parameters...

for post in get_posts('396158070447783', extra_info=True, cookies = "/Users/abc/Desktop/cookies.json", timeout = 60, pages=5):
        print(post)

I generated the cookies from this.

Here is the list of forum I tried

1408406792757541
1469323633339182
1483105448656574
150336081982527

Note: I've tested with 3 versions of the project (0.2.59 - 0.2.57) From the last 2 versions (0.2.58 & 0.2.57), I received this error

raise exceptions.UnexpectedResponse("Your request couldn't be processed")
facebook_scraper.exceptions.UnexpectedResponse: Your request couldn't be processed

And from the last version 0.2.59, sometimes I receive this but with nor result

/Users/abc/Desktop/fbtest/fbenv/lib/python3.11/site-packages/facebook_scraper/facebook_scraper.py:912: UserWarning: Facebook says 'Unsupported Browser'
  warnings.warn(f"Facebook says 'Unsupported Browser'")