Go to file
SeungJu Lim 3ff1ddf972 add bot fail exception 2024-02-20 23:30:41 +09:00
src/utils add whole workspace 2024-02-12 17:16:51 +09:00
.gitignore add whole workspace 2024-02-12 17:16:51 +09:00
LICENSE Initial commit 2024-02-12 07:49:14 +00:00
README.md Update README.md 2024-02-12 08:31:57 +00:00
cgvAjax.js add bot fail exception 2024-02-20 23:30:41 +09:00
main.js add whole workspace 2024-02-12 17:16:51 +09:00
package-lock.json add whole workspace 2024-02-12 17:16:51 +09:00
package.json add bot fail exception 2024-02-20 23:30:41 +09:00

README.md

CGV Booking Automation

This project is a code for automating movie bookings on CGV (Cine de Grande Vue).

Prerequisites

  • Node.js
  • npm/yarn
    • Puppeteer
    • Axios
    • Moment.js
    • ...

Installation

  1. Clone this repository to your local machine.
  2. Install dependencies using npm or yarn:
    npm install
    # or
    yarn install
    
  3. Set up environment variables by creating a .env file in the root directory and providing the required variables:
    URL_LOGIN='https://www.cgv.co.kr/user/login'
    URL_IPARKCGV='https://m.cgv.co.kr/WebApp/Reservation/schedule.aspx?tc=0013&rc=01&ymd=&fst=&fet=&fsrc='
    CGV_ID=<your_CGV_ID>
    CGV_PW=<your_CGV_PW>
    EZPAY_PW=<your_CGV_EZpay_6_Digit_PW>
    BOT_TOKEN=<your_telegram_bot_token>
    BOT_CHATID=<your_telegram_chat_id>
    COOKIE=<your_CGV_cookie>
    

Usage

To run the script, execute the following command:

npm run dev
# or
node ./cgvAjax.js 1

Contributing

Feel free to contribute to this project by opening issues or pull requests. Any feedback or suggestions are welcome!

License

This project is licensed under the MIT License.