Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wdwind/weibo_api
A Python library to access Weibo's private write API.
https://github.com/wdwind/weibo_api
weibo weibo-login weibo-sso-login
Last synced: about 2 months ago
JSON representation
A Python library to access Weibo's private write API.
- Host: GitHub
- URL: https://github.com/wdwind/weibo_api
- Owner: wdwind
- Created: 2019-06-10T01:01:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:28:42.000Z (over 1 year ago)
- Last Synced: 2024-03-14T21:27:32.221Z (10 months ago)
- Topics: weibo, weibo-login, weibo-sso-login
- Language: Python
- Homepage:
- Size: 4.76 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weibo Write API
A Python wrapper for Weibo write API.
![Python 3.7](https://img.shields.io/badge/Python-3.7-3776ab.svg?maxAge=2592000)
## Note (2020.12)
Weibo(.com/.cn) recently had an update that added more restrictions to the login logic. Basically if a device is not trusted (like a new device), multi-factor authentication is always required during login. The library now supports secondary verification via sms or private message.
Although secondary verification is supported, there are some non-negligible limitations. For example, the process cannot be fully automated (need human intervention), and certain authentication method (especially sms) can only be used a few times per day.
As a result, it is highly recommended to save the requests session to avoid re-login every time when using the api. Check [``examples/``](examples/) on how to save/load the session to a file.
## Features
* Login with private message or sms
* Post text
* Post image
* **Post video**
* Repost## Install
* Install with pip:
```
pip install git+https://[email protected]/wdwind/weibo_api.git
```* To update:
```
pip install git+https://[email protected]/wdwind/weibo_api.git --upgrade
```* To update with latest repo code:
```
pip install git+https://[email protected]/wdwind/weibo_api.git --upgrade --force-reinstall
```## Examples
Check [``examples/``](examples/).
## Development
* Run unit tests
```
python -m unittest discover
```## License
MIT
## Disclaimer
Weibo services are highly unstable. Use it at your own risk.