Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taizilongxu/weibo_robot
用新浪API实现的与电脑交互的机器人
https://github.com/taizilongxu/weibo_robot
Last synced: about 2 months ago
JSON representation
用新浪API实现的与电脑交互的机器人
- Host: GitHub
- URL: https://github.com/taizilongxu/weibo_robot
- Owner: taizilongxu
- Created: 2014-08-14T03:18:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-11T06:32:31.000Z (over 9 years ago)
- Last Synced: 2023-08-19T00:43:20.527Z (over 1 year ago)
- Language: Python
- Size: 199 KB
- Stars: 83
- Watchers: 12
- Forks: 44
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 使用
需要weibo包依赖:
```
pip install weibo
```## 截图
![](https://github.com/taizilongxu/weibo_robot/raw/master/pic/1.png)
![](https://github.com/taizilongxu/weibo_robot/raw/master/pic/2.png)
## 需要写入的参数
```python
APP_KEY = '' # app key
APP_SECRET = '' # app secret
CALLBACK_URL = '' # callback url
AUTH_URL = 'https://api.weibo.com/oauth2/authorize'
USERID = '' # userid
PASSWD = '' #password
```其中前3项需要自己注册新浪的API然后填入进程序,注意要和USERID是一个账号,否则后面的认证就会失败.
后两项是账号和密码.
## 运行依赖
* Python 2.7