style: black
This commit is contained in:
parent
10faac6459
commit
310ad49337
@ -20,9 +20,9 @@ LOGGER.addHandler(StreamHandler(stdout))
|
||||
|
||||
class CustomHTTPHandler(DefaultHTTPHandler):
|
||||
def request(self, url, query, headers, timeout):
|
||||
headers[
|
||||
"User-Agent"
|
||||
] = "Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0"
|
||||
headers["User-Agent"] = (
|
||||
"Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0"
|
||||
)
|
||||
return super().request(url, query, headers, timeout)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user