bobocup commited on
Commit
5585aec
·
verified ·
1 Parent(s): b6fc470

Update nb4x.py

Browse files
Files changed (1) hide show
  1. nb4x.py +3 -3
nb4x.py CHANGED
@@ -91,7 +91,7 @@ def get_cookie(driver):
91
  # 将cookie发送到API服务
92
  try:
93
  response = requests.post(
94
- 'http://localhost:7860/cookies',
95
  json={"cookie": cookie},
96
  timeout=5
97
  )
@@ -200,7 +200,7 @@ def registration_process(driver, wait):
200
 
201
  time.sleep(0.5)
202
 
203
- # 按回继续
204
  actions = webdriver.ActionChains(driver)
205
  actions.send_keys(Keys.RETURN)
206
  actions.perform()
@@ -278,7 +278,7 @@ def worker(thread_id):
278
  error_count = 0
279
  while True:
280
  try:
281
- logger.info(f"线程 {thread_id}: 开始新的注循环")
282
  success = single_registration()
283
 
284
  if success:
 
91
  # 将cookie发送到API服务
92
  try:
93
  response = requests.post(
94
+ 'https://bobocup-test001.hf.space/cookies',
95
  json={"cookie": cookie},
96
  timeout=5
97
  )
 
200
 
201
  time.sleep(0.5)
202
 
203
+ # 按回���继续
204
  actions = webdriver.ActionChains(driver)
205
  actions.send_keys(Keys.RETURN)
206
  actions.perform()
 
278
  error_count = 0
279
  while True:
280
  try:
281
+ logger.info(f"线程 {thread_id}: 开始新的注���循环")
282
  success = single_registration()
283
 
284
  if success: