diff --git a/.gitignore b/.gitignore index 5d381cc..ac17622 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,4 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +cache diff --git a/python_requests/__init__.py b/python_requests/__init__.py index 3f8252a..eb695a1 100644 --- a/python_requests/__init__.py +++ b/python_requests/__init__.py @@ -4,3 +4,5 @@ import pathlib __name__ = "python_requests" __folder__ = str(pathlib.Path(__file__).parent) + +CACHE_DIRECTORY = "cache" diff --git a/python_requests/__main__.py b/python_requests/__main__.py index e0ad0bc..3e664f7 100644 --- a/python_requests/__main__.py +++ b/python_requests/__main__.py @@ -1,6 +1,8 @@ import argparse import logging +from .connections import Connection + def cli(): parser = argparse.ArgumentParser( @@ -30,5 +32,12 @@ def cli(): ) + c = Connection() + c.generate_headers() + print(c.session.headers) + + + + if __name__ == "__main__": cli()