44 lines
1.2 KiB
Markdown
44 lines
1.2 KiB
Markdown
# 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:
|
|
```batch
|
|
npm install
|
|
# or
|
|
yarn install
|
|
```
|
|
3. Set up environment variables by creating a `.env` file in the root directory and providing the required variables:
|
|
```javascript
|
|
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:
|
|
```batch
|
|
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. |