Commit 9bdf06125031957696a2abb24f84a076e1cc9d8a
1 parent
9d230e7d
修改mysession类属性
Showing
1 changed file
with
2 additions
and
2 deletions
commons/MySession.py
@@ -49,8 +49,8 @@ class mysession(requests.Session): | @@ -49,8 +49,8 @@ class mysession(requests.Session): | ||
49 | self.max_retries = 3 | 49 | self.max_retries = 3 |
50 | self.keep_alive = False | 50 | self.keep_alive = False |
51 | self.ssl_verify = False | 51 | self.ssl_verify = False |
52 | - # self.proxies = None | ||
53 | - self.proxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'} | 52 | + self.proxies = None |
53 | + # self.proxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'} | ||
54 | self.myproxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'} | 54 | self.myproxies={'http': 'http://localhost:8888', 'https': 'http://localhost:8888'} |
55 | self.allow_redirects = False | 55 | self.allow_redirects = False |
56 | self.firmid={"group":"1","hd":"2","cd":"3","qqhe":"4","mdj":"5","gy":"6","cc":"7","sg":"8","sy":"9"} | 56 | self.firmid={"group":"1","hd":"2","cd":"3","qqhe":"4","mdj":"5","gy":"6","cc":"7","sg":"8","sy":"9"} |