GithubHelp home page GithubHelp logo

perdux / message_history_auto_downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rongcloud/message_history_auto_downloader

0.0 2.0 0.0 834 KB

自动下载聊天历史记录到本地服务器的任务脚本。

License: MIT License

Python 100.00%

message_history_auto_downloader's Introduction

# message_history_auto_downloader
自动下载聊天历史记录到本地服务器的任务脚本。

使用说明:
1、执行环境:linux系统
2、在脚本所在目录下,创建并编辑app_info.ini文件,添加如下三行:
    [info]
    rongcloud_app_key=您的App-key
    rongcloud_app_secret=您的App-secret
3、添加计划任务(使用linux自带的crontab服务),自动下载聊天记录,这里假设为root用户,设置方法如下:
     echo "0 * * * * python 脚本所在目录/history_message_download.py 脚本所在目录 > /dev/null 2>&1" >> /var/spool/cron/root(redhat系统)
  或 echo "0 * * * * python 脚本所在目录/history_message_download.py 脚本所在目录 > /dev/null 2>&1" >> /var/spool/cron/crontabs/root(ubuntu系统)
4、由于消息存挡的时间关系,此脚本每小时自动执行一次,每次下载的消息是一个小时前的数据,
   举例:现在15:00 =< time < 16:00,那么下载的消息为13:00-14:00的一个小时的历史消息。
5、消息自动存档至脚本所在目录。

message_history_auto_downloader's People

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.