8000 GitHub - du0et/likefordear: 为女神点赞
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

du0et/likefordear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

为女神点赞——Like For Dear

这是一个自动给女神微博点赞的脚本,三分钟检查一次女神微博更新,如果有新微博,就立马点赞。

部署在SAE,一个Python 脚本。

##搭建方法:

  1. 在SAE新建一个应用,初始化KVDB
  2. 编辑源代码index.wsgi,修改女神微博ID和授权码。
微博ID获取方法:打开女神的任意一条微博的如:http://weibo.com/1649913047/B3FVInUPr , 这里边的数字就是微博ID。  
授权码获取方法:打开https://api.weibo.com/2/oauth2/authorize?client_id=82966982&response_type=token&display=js&redirect_uri=https://api.weibo.com/oauth2/default.html ,授权后出现一个空白页面,不要关闭,按 Ctrl+U 查看源代码,找到"access_token":"2.00tlp********"。嗯,授权码就找到了。
  1. 编辑config.yaml,加入下边的代码:
    cron:
    - description: like
      url: /like
      timezone: Beijing
      schedule: "*/3 * * * *"
  1. 打开 http://<appname>.sinaapp.com/like 出现'get again',再刷新一次出现'liked',好了,女神以后发的微博都会在三分钟内自动点赞了。 ##注意事项:
  2. 授权有效期如果不使用Weico.apple微博客户端一般是90天,到时记得续期。如果使用苹果客户端。建议替换苹果的APPKEY为安卓的'211160679 '。代码和授权页面都改一下。
  3. 每三分钟抓取一次,每次抓取最新20条微博。这参数可以在源码里边改,三分钟在config.yaml,20条在wsgi.py,注意每次最多100条。

###有些未公开的接口,新浪微博开发平台的同志看到不要封,大家找个女朋友不容易。

About

为女神点赞

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0