diff --git a/.gitignore b/.gitignore index 7b004e5..456e4b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# lbc +publish.sh + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/CHANGELOG.md b/CHANGELOG.md index 33259b8..977518c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ -## v1.0.0 +## 1.0.0 * Initial release \ No newline at end of file diff --git a/README.md b/README.md index b9e1809..55d2af9 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ pip install lbc ## Usage ### Client -To create client you need to use lbc.Client class +To create client you need to use `lbc.Client` class ```python import lbc diff --git a/src/lbc/session.py b/src/lbc/session.py index aaf317e..cf8c17f 100644 --- a/src/lbc/session.py +++ b/src/lbc/session.py @@ -22,6 +22,14 @@ class Session: impersonate="firefox", ) + session.headers.update( + { + 'Sec-Fetch-Dest': 'empty', + 'Sec-Fetch-Mode': 'cors', + 'Sec-Fetch-Site': 'same-site', + } + ) + if proxy: session.proxies = { "http": proxy.url,