Commit 6ce39c7d authored by huangiyu's avatar huangiyu

1

parent 31a82a25
...@@ -116,12 +116,15 @@ class SlideUtils: ...@@ -116,12 +116,15 @@ class SlideUtils:
pyautogui.moveTo(x + int(offset * random.randint(15, 23) / 20), y, duration=0.28) pyautogui.moveTo(x + int(offset * random.randint(15, 23) / 20), y, duration=0.28)
y += random.randint(-9, 0) y += random.randint(-9, 0)
pyautogui.moveTo(x + int(offset * random.randint(17, 21) / 20), y, duration=random.randint(20, 31) / 100) pyautogui.moveTo(x + int(offset * random.randint(17, 21) / 20), y, duration=random.randint(20, 31) / 100)
y += random.randint(-3, 3) y += random.randint(-6, 6)
pyautogui.moveTo(xx, y, duration=0.8) pyautogui.moveTo(xx, y, duration=0.8)
print("睡眠1秒后松开") print("睡眠1秒后松开")
time.sleep(0.5) time.sleep(0.5)
import math import math
pyautogui.moveRel(0, random.randint(-50, 50), duration=0.5) pyautogui.moveRel(3, random.randint(-30, 10), duration=0.3)
pyautogui.moveRel(-3, random.randint(-30, 10), duration=0.2)
pyautogui.moveRel(0, random.randint(-30, 10), duration=0.3)
time.sleep(0.3)
print("松开") print("松开")
pyautogui.mouseUp() pyautogui.mouseUp()
...@@ -139,12 +142,15 @@ class SlideUtils: ...@@ -139,12 +142,15 @@ class SlideUtils:
pyautogui.moveTo(x + int(offset * random.randint(15, 23) / 20), y, duration=0.2) pyautogui.moveTo(x + int(offset * random.randint(15, 23) / 20), y, duration=0.2)
y += random.randint(-9, 0) y += random.randint(-9, 0)
pyautogui.moveTo(x + int(offset * random.randint(17, 21) / 20), y, duration=random.randint(20, 31) / 100) pyautogui.moveTo(x + int(offset * random.randint(17, 21) / 20), y, duration=random.randint(20, 31) / 100)
y += random.randint(-3, 3) y += random.randint(-2, 2)
pyautogui.moveTo(xx, y, duration=0.3) pyautogui.moveTo(xx, y, duration=0.3)
print("睡眠1秒后松开") print("睡眠1秒后松开")
time.sleep(0.5) time.sleep(0.5)
import math import math
pyautogui.moveRel(0, random.randint(-300, -100), duration=0.5) pyautogui.moveRel(3, random.randint(-30, 10), duration=0.3)
pyautogui.moveRel(-3, random.randint(-30, 10), duration=0.2)
pyautogui.moveRel(0, random.randint(-30, 10), duration=0.3)
time.sleep(0.3)
print("松开") print("松开")
pyautogui.mouseUp() pyautogui.mouseUp()
# print(f"睡眠2秒后点击 # print(f"睡眠2秒后点击
...@@ -368,10 +374,11 @@ def get_cookie(): ...@@ -368,10 +374,11 @@ def get_cookie():
# query_spider_sql = f"SELECT id,url,mallId FROM DMP_SEARCH_SPIDER WHERE data_batch ='202401251550270001' and ID NOT IN (SELECT ID FROM DMP_SEARCH_DATA) and mallId = 'DS-JD' order by docID desc limit 10000" # query_spider_sql = f"SELECT id,url,mallId FROM DMP_SEARCH_SPIDER WHERE data_batch ='202401251550270001' and ID NOT IN (SELECT ID FROM DMP_SEARCH_DATA) and mallId = 'DS-JD' order by docID desc limit 10000"
# query_spider_sql = f"SELECT id,url,mallId FROM DMP_SEARCH_SPIDER WHERE ID NOT IN (SELECT ID FROM DMP_SEARCH_DATA) and mallId = 'DS-JD' and data_batch ='202403051815460001' order by id" \ # query_spider_sql = f"SELECT id,url,mallId FROM DMP_SEARCH_SPIDER WHERE ID NOT IN (SELECT ID FROM DMP_SEARCH_DATA) and mallId = 'DS-JD' and data_batch ='202403051815460001' order by id" \
# f" limit 100000" # f" limit 100000"
query_spider_sql = f"SELECT id,url,mallId FROM DMP_SEARCH_SPIDER WHERE ID NOT IN (SELECT ID FROM DMP_SEARCH_DATA) and mallId = 'DS-JD' and project_id = '84' and (id like '5%' or id like '6%' or id like '7%' or id like '8%' or id like '9%' ) limit 10000" query_spider_sql = f"SELECT id,url,mallId FROM DMP_SEARCH_SPIDER WHERE ID NOT IN (SELECT ID FROM DMP_SEARCH_DATA) and mallId = 'DS-JD' and project_id = '110' limit 1000"
query_spider = mysql_zdzs_proxy(query_spider_sql) query_spider = mysql_zdzs_proxy(query_spider_sql)
index = 0 index = 0
len_ = len(query_spider) len_ = len(query_spider)
print(f"len={len_},index={index}")
for row in query_spider: for row in query_spider:
index += 1 index += 1
print(f"len={len_},index={index}") print(f"len={len_},index={index}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment