kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.47k stars 635 forks source link

About the issue of Unsupported Browser in Ubuntu 18 #686

Open techieshop opened 2 years ago

techieshop commented 2 years ago

Hi,

Thanks for the module, it is versatile.

I can make it work as expected in Windows, but when I move my script to Ubuntu, it cannot run with warning of Unsupported Browser. One major difference for the running environment is my Ubuntu is a SHELL without GUI and browser liked Chrome, Firefox installed.

Do you have any suggestion?

Thanks.

Attached the error message

/usr/local/lib/python3.6/dist-packages/facebook_scraper/facebook_scraper.py:817: UserWarning: Facebook says 'Unsupported Browser' warnings.warn(f"Facebook says 'Unsupported Browser'")

aromot commented 2 years ago

+1

Ianneee commented 2 years ago

Hi,

Thanks for the module, it is versatile.

I can make it work as expected in Windows, but when I move my script to Ubuntu, it cannot run with warning of Unsupported Browser. One major difference for the running environment is my Ubuntu is a SHELL without GUI and browser liked Chrome, Firefox installed.

Do you have any suggestion?

Thanks.

Attached the error message

/usr/local/lib/python3.6/dist-packages/facebook_scraper/facebook_scraper.py:817: UserWarning: Facebook says 'Unsupported Browser' warnings.warn(f"Facebook says 'Unsupported Browser'")

I've solved this problem on Ubuntu using this user agent: "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"