mirror of
https://github.com/codl/forget
synced 2025-01-06 04:07:16 +01:00
15 lines
290 B
Python
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
|