Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Fix for login error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeagueOfPoro committed Sep 16, 2022
1 parent bf099c7 commit f8f095b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def addWebdriverOptions(options, headless):
options.add_argument("log-level=3")
if headless:
options.add_argument("--headless")
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71"
options.add_argument(f'user-agent={user_agent}')
return options

def getLiveMatches(driver):
Expand Down

0 comments on commit f8f095b

Please sign in to comment.