Updated User Agent String to match newest Chrome

This commit is contained in:
Baerbel Box
2024-05-29 14:01:04 +02:00
parent 5eec1474b8
commit e25c015335

View File

@@ -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)