maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
654 stars 162 forks source link

Update useragent for PhantomJS #24

Closed manuelbua closed 4 years ago

manuelbua commented 5 years ago

This updates the User Agent string being used to perform request with the PhantomJS backend: some websites will present a full window message alerting to upgrade the browser, making the screenshot useless.

The new string is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36.

maaaaz commented 4 years ago

Thank you @manuelbua, this old useragent had indeed to be changed !