Skip to content

Commit ac2244f

Browse files
author
Florian
committed
updated examples
1 parent 420f66c commit ac2244f

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ import tls_client
1515

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

2729
session = tls_client.Session(
2830
client_identifier="chrome112",

examples/example1 - preset.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

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

1416
session = tls_client.Session(
1517
client_identifier="chrome112",

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typing-extensions

tls_client/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
__title__ = "tls_client"
88
__description__ = "Advanced Python HTTP Client."
9-
__version__ = "0.2.2"
9+
__version__ = "1.0"
1010
__author__ = "Florian Zager"
1111
__license__ = "MIT"

tls_client/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Literal, TypeAlias
1+
from typing_extensions import Literal, TypeAlias
22

33
ClientIdentifiers: TypeAlias = Literal[
44
# Chrome

0 commit comments

Comments
 (0)