forget-cancellare-vecchi-toot/libforget/session.py

15 lines
290 B
Python

import requests
import version
def make_session():
s = requests.Session()
s.headers.update(
{
"user-agent": "Forget/{version} +https://forget.codl.fr".format(
version=version.get_versions()["version"]
)
}
)
return s