mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 06:36:24 +02:00
Updated User Agent String to match newest Chrome
This commit is contained in:
@@ -23,7 +23,8 @@ class TitleObserver(PrivMsgObserverPrototype):
|
|||||||
url = url.group()
|
url = url.group()
|
||||||
print(url)
|
print(url)
|
||||||
try:
|
try:
|
||||||
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}
|
headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'}
|
||||||
|
|
||||||
url = url
|
url = url
|
||||||
req = urllib.request.Request(url, None, headers)
|
req = urllib.request.Request(url, None, headers)
|
||||||
resource = urllib.request.urlopen(req)
|
resource = urllib.request.urlopen(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user