Code Monkey home page Code Monkey logo

v2ex's Introduction

V2EX

几个针对V2EX写的小脚本~

v2ex_daily.py

无任何非标准库依赖, 获取v2ex每日登录奖励.

如何使用

之前V2EX验证登录用的Cookie是auth, 每次登录后auth的值都是相同的, 你需要做的就是把这个值赋给脚本中的变量V2EX_COOKIE.

不过最新的v2ex验证Cookie已经更为A2, 不过之前的auth还是可以使用的, 而且我们可以从A2中得到auth的值. 典型A2的格式是这样的:

2|1:0|10:1415406915|2:A2|56:xxxxxx|uuuuuu

我们关注的是56:xxxxxx, 前面的56表示后面的xxxxxx长度, 而后面的xxxxxx之前Cookieauth值的Base64编码值, 解码这个值并赋给脚本中的变量V2EX_COOKIE就可以了!

最后, 添加定时任务, 每天执行脚本~~

v2ex_avatar.py

获取v2ex某个注册用户的头像(前提是该用户上传了自定义头像)。方法来自 有什么办法能弄到v2ex里面所有用户的头像图片.

v2ex's People

Contributors

isayme 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

Watchers

 avatar  avatar  avatar

v2ex's Issues

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.