diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index 1545399..8bebbb4 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -9,11 +9,7 @@ jobs: - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "The workflow is now ready to test your code on the runner." - name: List files in the repository run: | - ls ${{ gitea.workspace }} + ls ${{ gitea.workspace }} - run: echo "This job's status is ${{ job.status }}." diff --git a/youdian.py b/youdian.py index 4dbe337..ba98431 100644 --- a/youdian.py +++ b/youdian.py @@ -194,13 +194,10 @@ class Chrome(object): if not second_next_step.exists: wait_until(second_next_step.exists) click(second_next_step) - checkbox = S('//div[contains(@class, "checkbox")]') - if checkbox.exists: - click(checkbox) confirm = Text("确认") if not confirm.exists: wait_until(confirm.exists) - time.sleep(10) + time.sleep(5) click(confirm) # 后退 back_1 = S('a.backlink') @@ -267,8 +264,8 @@ with Chrome() as chrome: # chrome.balance() # 组选 # result = ['039', '048', '049', '138', '139', '147', '237', '238', '246', '247'] - result = ['336', '156', '146', '447', '366'] - chrome.pls(result = result, multiple=1, save_result=False) + result = ['258', '256', '156', '247', '067'] + chrome.pls(result = result, multiple=1, save_result=True) # 直选 # result = ['246', '264', '291', '219', '169'] # chrome.pls(result=result, is_group=False) \ No newline at end of file