This commit is contained in:
piair 2022-03-28 18:33:14 +02:00
parent f6254b09ba
commit 9a89c7bee8
1 changed files with 2 additions and 1 deletions

3
V4.py
View File

@ -89,8 +89,9 @@ def FirefoxPC(Headless = Headless):
PC_USER_AGENT = ('Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134')
options.set_preference("general.useragent.override", PC_USER_AGENT)
options = Options()
options.set_preference("general.useragent.override", PC_USER_AGENT)
options.set_preference("browser.link.open_newwindow", 3)
if Headless :