File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ class Requester:
10
10
def __init__ (self ):
11
11
12
12
self .HEADER = {
13
- "User-Agent" : "PostmanRuntime/7.28.4" , # random.choice(USER_AGENTS),
13
+ "User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" ,
14
+ "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9" ,
15
+ "Referer" : "https://www.google.com/" ,
16
+ "Connection" : "keep-alive" ,
14
17
"Host" : "www.vinted.fr" ,
15
18
}
16
19
self .VINTED_AUTH_URL = "https://www.vinted.fr/"
@@ -26,7 +29,10 @@ def setLocale(self, locale):
26
29
"""
27
30
self .VINTED_AUTH_URL = f"https://{ locale } /"
28
31
self .HEADER = {
29
- "User-Agent" : "PostmanRuntime/7.28.4" , # random.choice(USER_AGENTS),
32
+ "User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" ,
33
+ "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9" ,
34
+ "Referer" : "https://www.google.com/" ,
35
+ "Connection" : "keep-alive" ,
30
36
"Host" : f"{ locale } " ,
31
37
}
32
38
self .session .headers .update (self .HEADER )
You can’t perform that action at this time.
0 commit comments