Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Jan 14, 2024
1 parent 420f66c commit ac2244f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ import tls_client

# You can also use the following as `client_identifier`:
# Chrome --> chrome_103, chrome_104, chrome_105, chrome_106, chrome_107, chrome_108, chrome109, Chrome110,
# chrome111, chrome112
# Firefox --> firefox_102, firefox_104, firefox108, Firefox110
# chrome111, chrome112, chrome_116_PSK, chrome_116_PSK_PQ, chrome_117, chrome_120
# Firefox --> firefox_102, firefox_104, firefox108, Firefox110, firefox_117, firefox_120
# Opera --> opera_89, opera_90
# Safari --> safari_15_3, safari_15_6_1, safari_16_0
# iOS --> safari_ios_15_5, safari_ios_15_6, safari_ios_16_0
# iPadOS --> safari_ios_15_6
# Android --> okhttp4_android_7, okhttp4_android_8, okhttp4_android_9, okhttp4_android_10, okhttp4_android_11,
# okhttp4_android_12, okhttp4_android_13
#
# more client identifiers can be found in settings.py

session = tls_client.Session(
client_identifier="chrome112",
Expand Down
6 changes: 4 additions & 2 deletions examples/example1 - preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

# You can also use the following as `client_identifier`:
# Chrome --> chrome_103, chrome_104, chrome_105, chrome_106, chrome_107, chrome_108, chrome109, Chrome110,
# chrome111, chrome112
# Firefox --> firefox_102, firefox_104, firefox108, Firefox110
# chrome111, chrome112, chrome_116_PSK, chrome_116_PSK_PQ, chrome_117, chrome_120
# Firefox --> firefox_102, firefox_104, firefox108, Firefox110, firefox_117, firefox_120
# Opera --> opera_89, opera_90
# Safari --> safari_15_3, safari_15_6_1, safari_16_0
# iOS --> safari_ios_15_5, safari_ios_15_6, safari_ios_16_0
# iPadOS --> safari_ios_15_6
# Android --> okhttp4_android_7, okhttp4_android_8, okhttp4_android_9, okhttp4_android_10, okhttp4_android_11,
# okhttp4_android_12, okhttp4_android_13
#
# more client identifiers can be found in settings.py

session = tls_client.Session(
client_identifier="chrome112",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
typing-extensions
2 changes: 1 addition & 1 deletion tls_client/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

__title__ = "tls_client"
__description__ = "Advanced Python HTTP Client."
__version__ = "0.2.2"
__version__ = "1.0"
__author__ = "Florian Zager"
__license__ = "MIT"
2 changes: 1 addition & 1 deletion tls_client/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Literal, TypeAlias
from typing_extensions import Literal, TypeAlias

ClientIdentifiers: TypeAlias = Literal[
# Chrome
Expand Down

0 comments on commit ac2244f

Please sign in to comment.