@@ -12,11 +12,11 @@ Returns [requests.Response](https://docs.python-requests.org/en/latest/api/#requ
12
12
13
13
Masking as Tor Browser by using its default headers:
14
14
```
15
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
15
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/ webp,*/*;q=0.8",
16
16
"Accept-Encoding": "gzip, deflate, br",
17
17
"Accept-Language": "en-US,en;q=0.5",
18
18
"Upgrade-Insecure-Requests": "1",
19
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; rv:91 .0) Gecko/20100101 Firefox/91 .0"
19
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; rv:102 .0) Gecko/20100101 Firefox/102 .0",
20
20
```
21
21
22
22
### Install
@@ -79,7 +79,7 @@ HashedControlPassword hashed_password
79
79
from requests_tor import RequestsTor
80
80
81
81
rt = RequestsTor(tor_ports = (9000 , 9001 , 9002 , 9003 , 9004 ), tor_cport = 9151 , password = None ,
82
- autochange_id = 5 , threads = 8 , verbose = True )
82
+ autochange_id = 5 , threads = 8 )
83
83
"""
84
84
tor_ports = specify Tor socks ports tuple (default is (9150,), as the default in Tor Browser),
85
85
if more than one port is set, the requests will be sent sequentially through the each port;
@@ -88,7 +88,6 @@ rt = RequestsTor(tor_ports=(9000, 9001, 9002, 9003, 9004), tor_cport=9151, passw
88
88
autochange_id = number of requests via a one Tor socks port (default=5) to change TOR identity,
89
89
specify autochange_id = 0 to turn off autochange Tor identity;
90
90
threads = specify threads to download urls list (default=8);
91
- verbose = print debug information (default=False).
92
91
"""
93
92
94
93
# check your ip
0 commit comments