Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Latest commit

 

History

History
45 lines (38 loc) · 3.13 KB

README.md

File metadata and controls

45 lines (38 loc) · 3.13 KB

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 <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.

  3. Create a Google App Script project in your Google Drive.
  4. Download or clone the script of Collector.
    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.
    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.