2019-07-11 22:42:33 +02:00
|
|
|
import requests
|
|
|
|
import version
|
2019-07-11 22:31:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
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
|