lord63 / v2ex_daily_mission Goto Github PK
View Code? Open in Web Editor NEWV2EX 签到 python 版本实现。支持签到,查询连续登录天数,查询签到日志。
License: MIT License
V2EX 签到 python 版本实现。支持签到,查询连续登录天数,查询签到日志。
License: MIT License
如何提醒用户签到失败了呢,目前我想到这么几种思路:
Install lxml is not easy sometimes, we may replace it with other labraries. #6
I don't use Mac, so I can't test it at all. I can't guarantee that it works well.
If you're using Mac, please help me test it. If it crashes, it would be nice if you fix it.
How about using v2ex init
, you input the username, password, log_path according to the prompt, then v2ex_daily_mission
will help you initialize the config file.
之前是 u
和 p
:
login_data = {
'u': 'username',
'p': 'password',
'once': 'once',
'next': '/'
}
现在你要自己去拿 hash 过的字符串。
<td width="auto" align="left">
<input class="sl" type="text" placeholder="用户名或电子邮箱地址" autocapitalize="off" spellcheck="false" autocorrect="off" autofocus="autofocus" value="" name="064a89aa59c2838bdaa3023b1ebba6d1367afcf569c1a7d3189cb21eb1161c62">
</td>
所以参数就变成了:
login_data = {
'064a89aa59c2838bdaa3023b1ebba6d1367afcf569c1a7d3189cb21eb1161c62': 'username',
'xxx 类似于上面 hashed 过的': 'password',
'once': 'once',
'next': '/'
}
提示
Please check your username and password
`C:\Users\Administrator>pip install v2ex_daily_mission
Collecting v2ex_daily_mission
Downloading https://pypi.doubanio.com/packages/b8/3e/33635e5120ff3ffe7a982b2467d221c19585a994b2ae94063e81dc1917cd/v2ex_daily_mission-0.6.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-td3xr130\v2ex-daily-mission\setup.py", line 10, in
long_description = f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 700: illegal multibyte sequence
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-td3xr130\v2ex-daily-mission`
登录界面现在新加入了验证码
不知道能不能用ocr识别
Command "d:\python27\python.exe -c "import setuptools, tokenize;file='c:\us
ers\admini1\appdata\local\temp\pip-build-xczz6p\lxml\setup.py';exec(comp1\appdata\local\temp\pip-ytf0vx
ile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), fi
le, 'exec'))" install --record c:\users\admini
-record\install-record.txt --single-version-externally-managed --compile" failed
with error code 1 in c:\users\admini~1\appdata\local\temp\pip-build-xczz6p\lxml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.