Code Monkey home page Code Monkey logo

tsdm-coin-farmer's Introduction

TSDM-coin-farmer

天使动漫(tsdm39.net) 多账户自动签到+打工, 支持PC/Server/腾讯云函数

新增s1刷在线时间支持


最近比较忙, 本地版改到一半还没搞好. 要用本地版可以看下历史commit, 里面有能直接用的版本. 云函数目前正常

使用

  1. 腾讯云函数版: 见 这里, 相比本地运行更稳定, 比较推荐

  1. 本地 (服务器/电脑/安卓手机): 见这里

  1. DLC (s1阅读, eatasmr): 见这里

结构

  • farmer.py: 主程序
  • actions.py: cookie/工具类函数
  • dlc_xxx.py: 各种额外功能
  • settings.py, cookies.json: 存储登录信息, 请不要上传

cookies.json:

{
"用户名1": [
        {cookie1},
        {cookie2},
        ....
      ],
"用户名2": [...]
}

更新

2022.3.9: 重构代码, 之前的教程可能没有更新, 注意分辨


2022.2.10: 增加eatASMR的自动签到 (本地&云函数)DLC

2021.12.1: 增加s1刷阅读的云函数版本


2021.9.10: 增加日志记录, 优化在服务器上使用的稳定性 2021.9.11: 增加腾讯云函数支持


2021.8.23: 增加stage1st的刷在线时间功能, 改一改可扩展成任意discuz论坛的刷在线时间功能


其他

  • 需要urllib3==1.25.11, 因为这个bug

  • 服务器上使用selenium模式打工, 需要先设置成headless模式: 在/src/actionsget_webdriver()添加headless旗帜

  • 没有条件在pc上获取cookie的话, 可以尝试手动配置: 见doc/cookies.json.example

  • 使用IDE时, 把'/src'标记为source root; 把'/dist'标记为excluded

TODO

  • [ x ] 随机浏览s1页面
  • [ x ] eatASMR自动签到
  • tsdm自动提取页面
  • tsdm批量提取页面

tsdm-coin-farmer's People

Contributors

trojblue avatar nicr0n avatar

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.