Update nb4x.py
Browse files
nb4x.py
CHANGED
|
@@ -91,7 +91,7 @@ def get_cookie(driver):
|
|
| 91 |
# 将cookie发送到API服务
|
| 92 |
try:
|
| 93 |
response = requests.post(
|
| 94 |
-
'
|
| 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:
|