只是一些实用的小脚本
* get_xidian_news: 获得近期校内的新闻
* get_pay_info: 获得自己校园网流量使用情况
我在Mac Os X上使用Python 2.7.2, Linux应该也没问题:)
我假定你已经安装好了python和pip
-
安装依赖:
pip install requests, lxml
-
如果要使用get_pay_info, 请安装 tesseract
-
在get_pay_info.py中的USERNAME和PASSWORD中设置自己的学号和密码
-
在get_xidian_news.py中的DAY输入你想获得最近几天的消息
-
没有第5步
完全由你决定如何使用:)
- 手动执行
- 加到shell启动脚本中
- 写个cron job自己定制
欢迎pull requests;)