UsergeTeam / Userge

Userge, Durable as a Serge
https://userge.tech
GNU General Public License v3.0
676 stars 2.02k forks source link

Use random User-Agent in `webss.py` #472

Closed Jigarvarma2005 closed 2 years ago

Jigarvarma2005 commented 2 years ago

In headless chrome mode, the user agent is something like this: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/60.0.3112.50 Safari/537.36

The service provider updated their code to identify the HeadlessChrome part and would cause the tab to crash and in turn, destroying the Selenium user session.

This can bypass that User-Agent blocking and generate screenshot.

rking32 commented 2 years ago

thanks