Git Product home page Git Product logo

sinaweibo's Introduction

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

功能

  • 登录微博网页端,包括使用用户名和扫码登录两种方式;
  • 从其它网站(秒拍、cnBeta、博客园、TechWeb、推酷等)爬取内容;
  • 把爬取的内容转发到微博。
  • 微博支持发文字和图文。

注: 已兼容Python2和3。建议使用Python3,Python2下可能出现字符编码问题。

使用

  1. 根据注释修改配置文件config.py
  2. 运行main.pypython main.py

注意:

  1. 该代码使用了代码依赖requestsrsabeautifulsoup4和PIL(使用扫码登录),没有安装的话需要先安装:
pip install rsa
pip install requests
pip install beautifulsoup4
pip install PIL

或者

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

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

更新

  • 2018-01-06:增加扫码登录功能。

License

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

捐赠

如果您觉得该工具对你有帮助,欢迎给我一定的捐赠。

支付宝扫码捐赠

微信扫码捐赠

sinaweibo's People

Contributors

chaolongzhang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.