项目作者: quantabc

项目描述 :
python demo for weixin or wechat on https://mp.weixin.qq.com
高级语言: Python
项目地址: git://github.com/quantabc/mpwechat.git
创建时间: 2015-08-27T07:31:41Z
项目社区:https://github.com/quantabc/mpwechat

开源协议:MIT License

下载


mpwechat

python demo for weixin or wechat on https://mp.weixin.qq.com

one for get picture messages from wechat

About MpWeChat


MpWeChat is a tool for get image messages(im:just for the lastest three days ) from https://mp.weixin.qq.com with yourself account:

  • auto manage everyone’s image in themselves folder(named by remark_name or nick_name)
  • create the folder by the message date not the current date
  • store the lastest message id in text file everytime
  • self define the message begin time and the endl time you want to download

How to use it?

Only two things you need to do before use it.

step one

  1. pip install requests

step two

copy the ‘cacert.pem’ file from your python runtime folder
—-| why do this?
because the https, and it also needed for zip to exe or sh


Structure

  1. -| WechatPublic(Main class)
  2. -| Assist function
  3. ---| createdir()
  4. ---| get_max_id()
  5. ---| set_max_id()
  6. ---| waitapp()
  7. ---| get_total_page()
  8. ---| get_day()
  9. ---| get_datetime()
  10. ---| format_time()
  11. ---| get_time()
  12. ---| get_filename()

what’s the next?

  • zip the .py to exe or sh with PyInstaller
  • change the max id rule

author [@Jerry][http://www.cppfun.com]
enjoy it~