Code Monkey home page Code Monkey logo

check_in's Introduction

Check_In

文件说明

  • moyupai.py 保存了摸鱼派网站自动签到脚本
  • muacloud.py 保存了muacloud网站自动签到脚本
  • gamekegs.py 保存了gamekegs网站自动签到脚本
  • juejin.py 保存了掘金网站自动签到脚本
  • 91.py保存了91tvg网站自动签到脚本

使用方法

fork本项目后,在Settings->Secrets中新建仓库密码(New repository secret),根据你需要执行的签到脚本进行添加。例如你想对摸鱼派网站进行每日自动签到,则添加name为MOYUPAI_USERNAME,value为你摸鱼派登录的账户邮箱或者用户名,另外继续添加name为MOYUPAI_PASSWORD,value为你摸鱼派登录的密码,如下图所示

另外,我在Github Actions中默认配置了摸鱼派、掘金、游戏大桶、muacloud四个网站的签到脚本,但是大家不一定全部都要用,具体来说,你想签到什么网站,修改.github/workflows/main.yml文件即可,如下图所示

v1.1 版本更新

去掉代码中冗余的time.sleep(),改为使用driver.implicitly_wait(10)隐式等待所有操作10s,并且通过@retry修饰函数,使其报错后重新执行,增加鲁棒性,避免网络波动等因素的影响导致签到失败

v1.2版本更新

现在不需要手动上传chromedriver,也不需要每次手动更新chromedriver,main.yaml脚本支持自动获取最新的chromedriver文件

参考项目

check_in's People

Contributors

dependabot[bot] avatar smithjoker avatar wmathor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

check_in's Issues

修改yaml文件,可以不用一直更新chromedriver文件

如下,在网上找了一个github action selenium的方案
`name: selenium

#Controls when the action will run.
on:
#Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
#pull_request:
#branches: [ main ]
schedule:
- cron: '0 23 * * *'
#Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
pip install -r ./requirements.txt
- name: Prepare Selenium
(#https://github.com/marketplace/actions/setup-chromedriver)
uses: nanasess/[email protected]
- name: Start XVFB
run: |
Xvfb :99 &
- name: Run tests
run: python ./
env:
DISPLAY: :99`

怎么适用其他网站呢

尊敬的创作者你好,我以您的脚本为蓝本,改成了其他网站,为什么却不能签到成功呢,程序已经运行成功,可是却没有签到成功,我修改的是hupu.py,您要是有空的话可以帮看一下什么原因吗?
谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.