import requests class HTTPClient(requests.Session): def __init__(self, *args, **kwargs): requests.Session.__init__(self, *args, **kwargs) self.headers = {"User-Agent": "oebb_py/git (+https://kumig.it/kumitterer/oebb_py)"}