项目作者: Hash7ag

项目描述 :
The coupon collector for Taiwanese McDonald's Daily application.
高级语言: JavaScript
项目地址: git://github.com/Hash7ag/mcddaily-collector.git
创建时间: 2020-07-15T09:35:30Z
项目社区:https://github.com/Hash7ag/mcddaily-collector

开源协议:MIT License

下载


McDonald’s Daily Coupon Collector

MyGet

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

  1. Create a spreadsheet in your Google Drive, and add the second worksheets in it.
  2. 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.

  3. Create a Google App Script project in your Google Drive.
  4. Download or clone the script of Collector.
    1. git clone https://github.com/Hash7ag/mcddaily-collector.git
  5. Edit the variable sheetId, at the first line of main.js, to the Spreadsheet ID, which is created at Step1.
    1. var sheetId = "<Spreadsheet ID>";
  6. Upload main.js, mcddaily-api.js, library.js, and index.html to the project created at step 3 via clasp or copy-paste.
  7. Call the function collect every day to collect coupon via Triggers.
  8. Call the function updateList every day(or hour) to update the coupon list which shows on web app via Triggers.
  9. Deploy your project as a web app.
  10. Enjoy!

License

Copyright © 2020-21 Hash7ag All Rights Reserved

This project is licensed under the MIT License.