oebb_py/classes/httpclient.py

8 lines
229 B
Python
Raw Normal View History

2017-11-02 12:43:46 +00:00
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)"}