complete mission, get money, from v2ex
Project description
Intro:
模拟登录v2ex完成任务领钱 OvO
Requirements:
Requests
Lxml
Terminal
Install
$ sudo pip install v2ex_daily_mission
How to use:
在/usr/local/bin/目录下新建文件v2ex_config.json, 像这样:
{
"username" = 'xxxx',
"password" = 'xxxx',
"log_directory" = '/path/to/save/logfile/',
"count" = 5 # 查看默认的最近的情况的天数,可以自己设置
}
完成任务得到钱:
$ v2ex_daily_mission
查看最近的情况(默认天数在 v2ex_config.josn 的 count 中设置):
$ v2ex_daily_mission read
也可以通过参数来查看最近的情况
$ v2ex_daily_mission read -c NUMBER
查看已经连续登录多少天
$ v2ex_daily_mission last
通过 v2ex_daily_mission -h 和 v2ex_daily_mission read -h 获得使用帮助
建议将任务加入 cron 定时运行, 比如我的:
12 19 * * * /usr/local/bin/v2ex_daily_mission
Snapshots
the first time you do it:
$ v2ex_daily_mission 2014-07-31 19:12:03,417 [INFO] 20140731 的每日登录奖励 26 铜币 Total:5439.0
if you have done it:
$ v2ex_daily_mission You have completed the mission today.
read log file to know recent days(I set "count": 5in the config file):
$ v2ex_daily_mission read 2014-07-27 19:12:03,902 [INFO] 20140727 的每日登录奖励 15 铜币 Total:5346.0 2014-07-28 19:12:03,751 [INFO] 20140728 的每日登录奖励 28 铜币 Total:5374.0 2014-07-29 19:12:03,750 [INFO] 20140729 的每日登录奖励 27 铜币 Total:5401.0 2014-07-30 19:12:03,471 [INFO] 20140730 的每日登录奖励 12 铜币 Total:5413.0 2014-07-31 19:12:03,417 [INFO] 20140731 的每日登录奖励 26 铜币 Total:5439.0
also you can use the parameter:
$ v2ex_daily_mission read -c 1 2014-07-31 19:12:03,417 [INFO] 20140731 的每日登录奖励 26 铜币 Total:5439.0
get to know how long you’ve kept signing in:
$ v2ex_daily_mission last 已连续登录 54 天
Reference:
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file v2ex_daily_mission-0.2.3.tar.gz.
File metadata
- Download URL: v2ex_daily_mission-0.2.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910d3bf3237eb056b93013bca216aa833ab1b010645c8ff3ffa27f193000ab15
|
|
| MD5 |
dd55523d3332f567f5375eedbb2ef7f6
|
|
| BLAKE2b-256 |
db1800bf716e1c6c2ace7e95b146772d0f9dc97995a842a4c784330bee46db70
|