Skip to content

python纯代码登录新浪微博并自动发微博

License

Notifications You must be signed in to change notification settings

imagec/sinaWeibo

 
 

Repository files navigation

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
  1. 如果你的微博登录时要输入验证码,该代码是登录不成功的。

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

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

License

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

About

python纯代码登录新浪微博并自动发微博

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%