Coder Social home page Coder Social logo

qiandao's Introduction

自动签到

Build Status

很多网站都有签到的功能,每天你签到后可以获得一定的收益,用于该网站的一些功能获得。但是要每天去点真的很需要恒心与毅力。大家想获得收益,但是又每天不想去登陆点击,所以很多签到项目应运而生,其中比较著名的是binuxqiandao

其实这些签到项目基本上就是爬虫功能的应用,所以我自己也就在这里写几个练练手。写这些项目的时候还是有好多心得体会的,都整理一下吧。

关于使用

将这些脚本部署到自己的VPS上面,建个自动化任务每天执行就OK了

目前我找到了个办法,部署在 travis-ci 上面(以v2ex为例):

  1. 请先 fork 此项目到你自己的 github

  2. 注册travis-ci, 可以直接用github授权登陆

  3. 左侧菜单 点击 My Repositories + 加入 qiandao

  4. 右上角 More options->settings-> Environment Variables 中加入settings

    name 填 v2ex_username 和 v2ex_password Value 填 你的帐号 和 密码

travis-ci-environment

  1. Cron Jobs 设置成 daily travis-ci-cron-job

大功告成,这样就能每天v2ex签到了

v2ex

一直是v2ex的用户,每天也会去点签到,终于有一天忍不住了,想自动签到了,又不想在其他网站留下自己的帐号密码,故就想自己写一个。

不过说实在的,v2ex的防自动登录还是做的比较到位的

  • Headers 里面的 Refer, Origin
  • username, password(post的key), once 都是每次随机生成的

另外由于2017年之后,v2ex都改成https了,所以好多的自动签到工具都失效了,大家也要注意

多看阅读

最近想看书,下了个多看阅读,上面有个签到的功能,好像可以积分换书,先在这里占个坑,后续完成

qiandao's People

Contributors

bonfy 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  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  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  avatar  avatar

qiandao's Issues

V站的自动签到好像已经挂了

错误返回如下:

22.54s$ python3 v2ex.py
Traceback (most recent call last):
  File "v2ex.py", line 37, in <module>
    qiandao_v2ex()
  File "v2ex.py", line 24, in qiandao_v2ex
    u, p = re.findall(r'class="sl" name="([0-9A-Za-z]{64})"', resp.text)
ValueError: not enough values to unpack (expected 2, got 0)

请更新,谢谢

AttributeError

When I use this script, I got this message:

Traceback (most recent call last):
  File "v2ex.py", line 37, in <module>
    qiandao_v2ex()
  File "v2ex.py", line 32, in qiandao_v2ex
    resp = session.get('http://v2ex.com' + re.search(r'/mission/daily/redeem\?once=\d+', resp.text).group())
AttributeError: 'NoneType' object has no attribute 'group'

欢迎在此Issue下讨论签到目标,下一个是谁呢?

  1. 一些诸如 京东、支付宝之类涉及到钱的账户的签到,暂时就不涉及了,背不起那个大锅啊...
  2. 暂时只针对 用户名、密码 登录的(如果两步验证,或者只有微信等第三方授权登录的,咱们暂时先缓缓,技术有待研究)

欢迎大家集思广益,下个目标是谁呢?

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.