rogerxavier commited on
Commit
4306672
1 Parent(s): cc54c0e

Update login.py

Browse files
Files changed (1) hide show
  1. login.py +5 -5
login.py CHANGED
@@ -12,7 +12,7 @@ captcha_image_save = 'captcha.png'
12
  headers = {
13
  'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
14
  }
15
-
16
 
17
  def current_milli_time():
18
  return round(time.time() * 1000)
@@ -33,10 +33,10 @@ def get_response_headers(account:str,password:str,captcha_text:str):
33
  }
34
 
35
  response = session.post(login_url, data=payload)
36
- print("login请求结果是:",response.text)
37
  # 获取响应头
38
  headers = response.headers
39
- print('login请求响应头是:',headers)
40
  return headers
41
 
42
 
@@ -79,7 +79,7 @@ def get_cur_captcha(timeStamp:int,solver)->'返回当前时间戳对应的验证
79
 
80
 
81
  def get_cookie_alive_str():
82
- account, password = "3357172372@qq.com", "17331160967a"
83
  current_timestamp = current_milli_time()
84
  solver = TwoCaptcha(api_key)
85
  result = get_cur_captcha(current_timestamp, solver)
@@ -93,7 +93,7 @@ def get_cookie_alive_str():
93
  else:
94
  return ''
95
  if __name__ == '__main__':
96
- account,password = "3357172372@qq.com","17331160967a"
97
  current_timestamp = current_milli_time()
98
  solver = TwoCaptcha(api_key)
99
  result = get_cur_captcha(current_timestamp,solver)
 
12
  headers = {
13
  'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'
14
  }
15
+ account,password = "2995138709@qq.com","17331160967a"#还有一个3357的,过期换
16
 
17
  def current_milli_time():
18
  return round(time.time() * 1000)
 
33
  }
34
 
35
  response = session.post(login_url, data=payload)
36
+
37
  # 获取响应头
38
  headers = response.headers
39
+ print(headers)
40
  return headers
41
 
42
 
 
79
 
80
 
81
  def get_cookie_alive_str():
82
+
83
  current_timestamp = current_milli_time()
84
  solver = TwoCaptcha(api_key)
85
  result = get_cur_captcha(current_timestamp, solver)
 
93
  else:
94
  return ''
95
  if __name__ == '__main__':
96
+
97
  current_timestamp = current_milli_time()
98
  solver = TwoCaptcha(api_key)
99
  result = get_cur_captcha(current_timestamp,solver)