fantasma119 / sinaWeibo

Automatically send sina weibo by python and without using weibo SDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python纯代码登录新浪微博并自动发微博,不使用SDK

用Python模拟HTTP操作,实现微博登陆、定时从秒拍、cnBeta、博客园、TechWeb、推酷获取最新的内容,再转发到微博。

注: 已兼容Python2和3。

使用

  1. 修改配置文件config.py,把微博账号和密码改为你自己的,还可以设置发送时间(默认是30分钟一次)。
  2. 运行main.pypython main.py

注意:

  1. 该代码使用了代码依赖requestsrsabeautifulsoup4,没有安装的话需要先安装:
pip install rsa
pip install requests
pip install beautifulsoup4

或者

pip install -r requirements.txt
  1. 如果你的微博登录时需要输入验证码,该代码是登录不成功的,在使用该代码前请取消微博的登陆验证码。

更多内容请参考:Python代码登录新浪微博并自动发微博

解决验证码登录问题、更多功能(sinaWeiboPro)请联系开发者

License

sinaWeibo is published under GNU GPLv3 License. See the LICENSE file for more.

About

Automatically send sina weibo by python and without using weibo SDK.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%