Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MilanBarande/ticketswoop
Ticketswoop is a basic puppeteer bot to purchase tickets on ticketswap
https://github.com/MilanBarande/ticketswoop
Last synced: 9 days ago
JSON representation
Ticketswoop is a basic puppeteer bot to purchase tickets on ticketswap
- Host: GitHub
- URL: https://github.com/MilanBarande/ticketswoop
- Owner: MilanBarande
- Created: 2021-08-21T18:45:51.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-16T11:57:16.000Z (over 2 years ago)
- Last Synced: 2024-08-02T15:27:17.800Z (3 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
⚠️ This repository is now deprecated as it doesn't work anymore with the latest Ticketswap UI
# Ticketswoop
Ticketswoop is a puppeteer-based bot to buy tickets on ticketswap when they are too difficult to buy by only relying on availability alerts.
## Installation
### Make sure you have node installed
```bash
node --version
```And visit [this page](https://nodejs.org/en/download/package-manager/) if you don't.
---
### Clone the project
```bash
git clone https://github.com/MilanBarande/ticketswoop.git && cd ticketswoop
```### Install the project
```bash
npm install
```*OR*
```bash
yarn
```## Usage
### To test the script
1. Open the `constants.js` file and replace the values for `EVENT_URL`, `MINIMUM_PRICE`, `executablePath` and `userDataDir`.
2. Enter your payment credentials with the `CREDIT_CARD_NUMBER`, `EXPIRATION_DATE`, `CVC` and `CARDHOLDER_NAME` variables if you wish to make an actual purchase.
3. Open Google Chrome and login to your Facebook account. If asked, tell Facebook to remember this browser.
4. Quit Chrome entirely
5. In the puppeteerConfig variable, change the `headless` value to `false` in order to see if the bot is working. You may want to use an event for which there are tickets available to see it reach the final step of payment. The bot will not make an actual purchase as long as you havent set the constant `IS_FOR_REAL` to `true`.
6. Launch the bot with the following command
```bash
node script.js
```
7. If the bot reaches the last payment with your test ticket, you can now replace the `EVENT_URL` with the desired event and set the `IS_FOR_REAL` variable to `true`.
8. You can now setup a [crontab](https://crontab.guru/) to have the bot run every minute (for example).