Giter Site home page Giter Site logo

huaxiatony / 1point3acres Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harryhare/1point3acres

0.0 0.0 0.0 770 KB

一亩三分地论坛自动签到、答题。给别人刷的,自己不需要。

License: GNU General Public License v3.0

Makefile 1.77% Python 97.56% Shell 0.67%

1point3acres's Introduction

每日签到答题

1point3acres

一亩三分地 自动签到、答题

一分钟快速设置,无 aws 依赖,验证码自动识别,一次性设置后再无需手动操作

  • 程序会自动识别验证码

  • 程序会在指定的时间每天运行一次,一次配置,永远执行,设好后就再不用管

  • 配置简单,一分钟搞定,使用 github action 模式,不依赖 github 以外的东西,只要 fork 本repo后设置 repo secret 即可

  • 支持多用户签到,批量用户签到,把用户名密码加到USERS数组中即可

how to use

下面几种执行模式任选一种即可。

github action 模式(推荐)

  • fork 这个repo

  • 增加一个 repo secret: USERS, 格式如下,需代入你的用户名密码,

    [{'username':'replace_with_your_username','password':'replace_with_your_password'}]
    

    用户名一般是邮箱,就是你登录的时候填的那个东东

    具体操作展开查看

  • enable github action

    具体操作展开查看

  • 做完上面的步骤,就完成了所有操作,github 会在每天的 北京时间9:00.am(UTC 1:00am.) 左右自动执行签到和答题程序。

    如果你想验证下用户名密码是否设置正确,可以到 git action 页面手动执行, 查看log中是否有"签到成功"

    如果已经答题或者已经签到,会显示"已答题" 或者 "已签到",同样表示设置已成功。

    github 每天自动执行的log 也可以在这里看到。

    具体操作展开查看

  • 好用请给个星

github action with docker 模式

  • 随便选(建)一个github repo

  • 创建 一个 repo secret : USERS, 格式如下,需代入你的用户名密码

    [{'username':'replace_with_your_username','password':'replace_with_your_password'}]
    
  • 创建 workflow

     name: 1point3acre get credits with docker
     on:
       workflow_dispatch:
       schedule:
         - cron: '30 0 * * *'
     jobs:
       _1point3acres:
         runs-on: ubuntu-latest
         name: get credits
         steps:
         - name: run docker
           id: checkin
           uses: harryhare/1point3acres@main
           with:
             users: ${{ secrets.USERS }}
         - name: get the result
           run: echo "${{ steps.checkin.outputs.result }}"

AWS-lambda 模式

  • 修改 configure/data.json,用你的用户名密码替换文件中的相应字段
  • aws 创建 docker registry, 修改 makefile 的 image 地址
  • 根据 aws 提示,docker login,然后 make build && make push
  • aws 创建 lambda,选择第一步创建的 image,设置trigger

crontab 模式

  • 修改 configure/data.json,用你的用户名密码替换文件中的相应字段

  • 安装依赖 以 ubuntu 为例,其他系统请用相应的方式安装依赖

    sudo /bin/bash prepare.sh
  • crontab

    crontab -e
    
    15 0 * * * python3 /replace_with_path_to_repo/service.py 2>&1 1>/dev/null
    

其他

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.