Git Product home page Git Product logo

sinaweibo's Introduction

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.

sinaweibo's People

Contributors

chaolongzhang avatar

Watchers

James Cloos 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.