Skip to content

iHandle/readfree-checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Readfree自动签到脚本

更新

再见了

使用cookie的Readfree自动签到脚本,支持将签到结果推动到iPhone.

PS: 现在Readfree的cookie有效期只有一周,所以如果你要什么更好的解决办法,欢迎一起讨论.

使用方法

修改脚本

  1. cookie字典有三处标记了[此处需要修改]的地方.使用Chrome等浏览器手动登录Readfree后可以获取cookie,然后根据对应的字段修改字典的值.( Chrome查看cookie参考
  2. confirm函数的url中标记为[此处需要修改为你的Readfree用户名]修改好.
  3. 如果需要使用Bark推送,根据注释提示修改bark_url,然后去掉最后两行代码的注释.(Bark使用方法

依赖部署(已部署的请忽略)

  1. python环境: Python 环境搭建
  2. 依赖模块: pip install beautifulsoup4, requests

定时运行

以Linux为例,使用crontab定时运行脚本,每天00:00的时候就会自动签到.(crontab教程

根据readfree.py放置的目录给crontab添加以下格式的定时计划:

@daily python PATH_TO_YOUR_readfree.py >/dev/null 2>&1

假如你的readfree.py文件是放在目录/home/abc下的,那么以上命令应该改为:

@daily python /home/abc/readfree.py >/dev/null 2>&1

>/dev/null 2>&1 语句含义: 不会输出任何信息到控制台,也不会有任何信息输出到文件中。

注意事项

注意检查Linux的时区是否为东8区. 否则crontab执行脚本的时间会与你设想的时间不一样.

date -R

博客

readfree.me自动签到脚本(python)

About

readfree.me自动签到脚本

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages