generating headers#

This commit is contained in:
Hazel Noack 2025-06-11 11:26:18 +02:00
parent 186208a2da
commit 36829906d0
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -160,3 +160,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
cache

View File

@ -4,3 +4,5 @@ import pathlib
__name__ = "python_requests" __name__ = "python_requests"
__folder__ = str(pathlib.Path(__file__).parent) __folder__ = str(pathlib.Path(__file__).parent)
CACHE_DIRECTORY = "cache"

View File

@ -1,6 +1,8 @@
import argparse import argparse
import logging import logging
from .connections import Connection
def cli(): def cli():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
@ -30,5 +32,12 @@ def cli():
) )
c = Connection()
c.generate_headers()
print(c.session.headers)
if __name__ == "__main__": if __name__ == "__main__":
cli() cli()