romeotools/request.py
2021-01-02 15:15:31 +01:00

8 lines
No EOL
394 B
Python

from urllib.request import Request as UrllibRequest, urlopen
class Request(UrllibRequest):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.headers["user-agent"] = "romeotools (https://kumig.it/kumitterer/romeotools)"
self.headers["X-Api-Key"] = "vuEp8o93b34CxUCljSMFEdhI70qDWtuk"
self.headers["Content-Type"] = "application/json"