目录

webwx-app-tracker

webwxApp SPA Html & AngularJS Script Tracker for Web Wechat

Introduction

The purpose of creating this repository is to track the code change from https://wx.qq.com , which can make the PuppetWeb of Wechaty life easier in the future.

What it is doing is:

  1. Save https://wx.qq.com HTML to original/index.html
  2. Save AngularJs JavaScript to original/wxwebApp.js
  3. Format the above two files, and save them to formatted/
  4. Check wether there has any update
  5. Commit to Git Repository and use js file name as commit message(if updated)

Case Study

I have a webwxApp.js which was saved on May 2016, about 5 months ago before I setup this tracker.

  1. After I finished this tracker, I got a diff on webwxApp between version May to Nov, you can see, there’s no much change at the past half year:

https://github.com/wechaty/webwx-app-tracker/commit/ab292418e2651ec7e2630da156b3c18f0dca26fd

  1. However there was a new little bug introduced in, it’s a typo of API_webwxsendmsgvedio:

https://github.com/wechaty/webwx-app-tracker/commit/ab292418e2651ec7e2630da156b3c18f0dca26fd#diff-80c9da80c8ca080b37c6c49864880646R3300

Enjoy it!

Quick Start

Open https://github.com/wechaty/webwx-app-tracker/commits/master/formatted/webwxApp.js to know the day to day change of web wechat app code.

Or clone this repository on github, then run on your own machine.

Cron

I put npm run track to my crontab with the following setting:(run every hour)

huan@dev:~/git/webwx-app-tracker$ crontab -l
1 * * * * (date && cd ~/git/webwx-app-tracker && npm run -s track >> /tmp/webwx-app-tracker.log 2>&1)

P.S. You need to use Github Personal Token to enable push in crontab:

Any suggestion is welcome.

See Also

History

v0.2 Nov 2020

Use GitHub Actions to replace crontab

v0.1 Nov 2016

Use crontab to run npm run track

Author

Huan (李卓桓), Tencent TVP of Chatbot

Profile of Huan LI (李卓桓) on StackOverflow

  • Code & Docs © 2016-now Wechaty Community Contributors
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号