generated from Hazel/python-project
generating headers#
This commit is contained in:
parent
186208a2da
commit
36829906d0
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user