Giter Club home page Giter Club logo

wesync-deprecated's Introduction

Wesync

A simple python project that automatically synchronizes wechat files to Google Drive/Any Cloud Drive save PanBaidu
一个神奇的Python项目, 同步你的微信文件

原理

  • itchat第三方微信API登陆
  • 当接收到图片或文件时, 调用下载并将文件储存在内存
  • 推送到integromat 然后自动推送至云端储存
  • 推送status_code与fileName至文件传输助手
    • 400
      • integromat 错误, 建议查看History
    • 200
      • 请求成功
      • 同时返回下载连接

配置

Integromat

自动化配置

  1. https://www.integromat.com/ 注册
  2. 新建Scenario
    • Webhooks: Custom Webhook
      • Add webhook
        • Add Data Structure
          • Add item
            • data
              • Name: data
              • Type: text
            • filename
              • Name: filename
              • Type: text
      • Copy webhook url
    • Google Drive
      • Choose a folder
      • File name: filename
      • Data: toBinary(data; base64)
      • Error Handler (right click this module)
        • Webhook Response
          • Status: 400
        • Ignore
    • Webhooks: Webhook Response
      • Status: 200
      • Body: Share Link

Windows

git clone https://github.com/William-An/wesync
wesync/Scripts/activate
# 预先将webhook的URL在sync.py中赋值为integromat
python sync.py
# enableCmdQR一定要为True

更多信息详见itchat文档

Linux

TO BE Continue

注意事项

  • 云端储存并不一定要Google Drive, 可以使用其他的云端服务像Dropbox
  • 上传到Google Drive的文件是默认开放查看权限的, 拥有链接的人就可以查看或下载, 请自行衡量

wesync-deprecated's People

Contributors

william-an avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

trellixvulnteam

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.