Code Monkey home page Code Monkey logo

wechat-export's Introduction

wechat-export

基于wxpy项目将群聊天记录以文本格式导出,目前只支持文本消息,支持将聊天记录发送到指定邮箱中。

1 环境与依赖

此版本只能运行于Python 2环境。

使用之前需要安装所依赖的库:

pip install wxpy

2 文件说明

export.py文件用来导出聊天记录,需要常驻运行,直接用 python 运行代码:

python export.py

mail.php文件用来发送聊天记录,可以在crontab中设置定时任务。

wechat.conf是配置文件,其中:

[wechat]
path 聊天记录存放路径
group_name 微信群名字
hour 每天备份截止时间,超过此时间将记录备份到新的文件中

[email]
host 邮件服务器
user 登录的邮箱
pass 邮件服务器的授权码
port 邮件服务器端口
to 收件人邮箱,多个邮箱用空格分开

QQ邮箱的授权码设置可以参考http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256

3 Todo

  • 增加图片消息支持
  • 增加图文消息支持
  • 导出格式换为pdf

wechat-export's People

Contributors

xyzibu 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.