Giter VIP home page Giter VIP logo

respawnweibo's Introduction

备份/克隆微博

功能

登陆微博

  1. 先在config.py中设置用户名和密码
    USERNAME="[email protected]"
    PASSWD="password"
    
  2. 执行
    python3 user_info.py
    
    脚本会生成sender.sess,并会输出containerIDuid

备份微博

执行

python3 cache.py -cid containerID

执行之后微博会被下载到 cached 路径下,每一页(10条微博)缓存为一个json文件。

克隆微博

  1. config.py中的用户名和密码更新为目标账号
  2. 执行
    python3 user_info.py
    
  3. 执行
    python3 respawn.py -f cached/8.txt  -u uid -c 9
    
    就会自动将缓存到8.txt中的微博发布到config.py中设置的微博账号中。

对于转发的微博,会优先转发原微博;如果转发失败,则会尝试按照原创微博 的方式将原微博内容一起发布。

respawn.py的参数说明如下:

  • -f JSON_FILE, 缓存的json文件.
  • -s SESSION_FILE, 指定session文件可避免反复登陆
  • -u UID, 用户ID,可通过 user_info.py 查看
  • -c CONTINUE 从文件中的某一条微博开始发布。
  • -ft, 强制用原创微博的方式克隆转发微博。

说明

  1. cache.py 代码修改自 https://github.com/yekingyan/Weibo/blob/master/Weibo.py
  2. weibo/ 的代码修改自 https://github.com/chaolongzhang/sinaWeibo
  3. 由于微博对发布频率的限制,目前设置为约30s发送一条
  4. 本项目不稳定

License

Published under GNU GPLv3 License. See the LICENSE file for more.

捐赠

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

支付宝扫码捐赠

微信扫码捐赠

respawnweibo's People

Contributors

catbaron0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

respawnweibo's Issues

执行user_info.py 发生错误

$ python3 user_info.py
Traceback (most recent call last):
File "user_info.py", line 3, in
from weibo.weibo_login import wblogin
File "/Users/sunshy/code/project/respawnWeibo/weibo/weibo_login.py", line 7, in
import rsa
ModuleNotFoundError: No module named 'rsa'

语法相关问题

作者你好,想问一下这里的冒号是符合python语法吗?我的python3报错了
微信图片_20200614184104

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.