The coupon collector for Taiwanese McDonald's Daily application.
Other Languages: English, 繁體中文
- 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.
- 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.
- 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 <Your Username> <Your Password> ... <More Username> <More Password> 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 ofmain.js
, to the Spreadsheet ID, which is created at Step1.var sheetId = "<Spreadsheet ID>";
- Upload
main.js
,mcddaily-api.js
,library.js
, andindex.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!
Copyright © 2020-21 Hash7ag All Rights Reserved
This project is licensed under the MIT License.