diff --git a/auto_v2.py b/auto_v2.py index e27f98d..9e150a1 100644 --- a/auto_v2.py +++ b/auto_v2.py @@ -44,7 +44,8 @@ try: # 点击排列三 - pls = S('//*[@id="vue2_el"]/div/section/div[6]/div[4]/div[3]') + # pls = S('//*[@id="vue2_el"]/div/section/div[6]/div[4]/div[3]') + pls = S('p.lottname.p3') wait_until(pls.exists) click(pls) wait_until(Text('组选').exists) diff --git a/pls.py b/pls.py index 16776ef..0a3fc28 100644 --- a/pls.py +++ b/pls.py @@ -36,8 +36,8 @@ for i in sum_group6_dict.keys(): f2 = lambda number: len([i for i in number if int(i) %2 == 1]) != 0 f3 = lambda number: True if max(map(int, number)) - min(map(int, number)) != 2 else False f4 = lambda number: True if '3' not in number else False - f5 = lambda number: True if '4' not in number else False - if i in [15, 19]: + f5 = lambda number: True if '2' not in number else False + if i in [15, 21]: result = sum_group6_dict[i]+sum_group3_dict[i] print(i, list(filter(f5, result))) # print(i, sum_group3_dict[i]) diff --git a/youdian.py b/youdian.py index f0f9fa4..e659180 100644 --- a/youdian.py +++ b/youdian.py @@ -161,4 +161,5 @@ class Chrome(object): with Chrome(headless=False) as chrome: chrome.balance() - chrome.pls(result = ['258', '357', '069', '168', '078']) \ No newline at end of file + result = ['078', '348', '456', '069', '168', '177', '339', '366', '447', '678', '579', '489', '399', '669', '588'] + chrome.pls(result = result) \ No newline at end of file