项目作者: Hash7ag
项目描述 :
The coupon collector for Taiwanese McDonald's Daily application.
高级语言: JavaScript
项目地址: git://github.com/Hash7ag/mcddaily-collector.git
McDonald’s Daily Coupon Collector

The coupon collector for Taiwanese McDonald’s Daily application.
Other Languages: English, 繁體中文
Feature
- Collector is built on Google App Script, which can help us run the script every day.
- Everyone can use their own Google Account to launch Collector.
Notice
- This project is no longer supported because McDonald’s Taiwan shut down McDonald’s Daily application and switched to a new application.
- Collector does not yet support the users linking with Facebook, Google, or Apple.
- This script might stop working in the near future, as they have changed the hashing algorithm from simple MD5 to AES encryption + Base64 hashing using a differently formatted string.
Setup
- Create a spreadsheet in your Google Drive, and add the second worksheets in it.
- Edit the first worksheet as below:
| # | Username | Password | Token | Last Update | Last Coupon | Expiring Sticker | Next Month Sticker |
| :—-: | :———————-: | :———————-: | :—-: | :————-: | :————-: | :———————: | :————————: |
| 1 | \ | \ | | | | | |
| … | \ | \ | | | | | |
Fill your username and your password of each of McDonald’s Daily at the username column and the password column.
Leave the blank cell empty, it will be automatically filled by Collector.
- Create a Google App Script project in your Google Drive.
- Download or clone the script of Collector.
git clone https://github.com/Hash7ag/mcddaily-collector.git
- Edit the variable
sheetId
, at the first line of main.js
, to the Spreadsheet ID, which is created at Step1. var sheetId = "<Spreadsheet ID>";
- Upload
main.js
, mcddaily-api.js
, library.js
, and index.html
to the project created at step 3 via clasp or copy-paste. - Call the function
collect
every day to collect coupon via Triggers. - Call the function
updateList
every day(or hour) to update the coupon list which shows on web app via Triggers. - Deploy your project as a web app.
- Enjoy!
License
Copyright © 2020-21 Hash7ag All Rights Reserved
This project is licensed under the MIT License.