Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AidanHarveyNelson/pokemon_tcg_redeem
A Script to automatically redeem Pokemon TCG Live Codes
https://github.com/AidanHarveyNelson/pokemon_tcg_redeem
Last synced: about 1 month ago
JSON representation
A Script to automatically redeem Pokemon TCG Live Codes
- Host: GitHub
- URL: https://github.com/AidanHarveyNelson/pokemon_tcg_redeem
- Owner: AidanHarveyNelson
- Created: 2023-06-22T01:47:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-22T01:49:35.000Z (over 1 year ago)
- Last Synced: 2024-08-01T21:58:09.026Z (5 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- starred - AidanHarveyNelson/pokemon_tcg_redeem - A Script to automatically redeem Pokemon TCG Live Codes (Python)
README
## About the Project
If you are sick of having to enter the Pokemon TCG codes one by one or scanning the QR codes one by one this tool is for you. By providing it a list of codes or a file containing the codes it will automatically login to the Pokemon TCG website and redeem the codes for your account.
### Prerequisites
- Python v3.8
- Pipenv https://pypi.org/project/pipenv/
- Chrome Browser### Download Script to local PC
Go to the following page and download the latest release https://github.com/AidanHarveyNelson/pokemon_tcg_redeem/releases, either zip or tar.gz. Unzip the file to a new folder then continue following the next steps of the README.
### Setting up Environment
Assuming the above prerequisites have been installed already the following command will build a virtual environment. Run the below command from within this folder.
```
pipenv install
```### Running this Project
Currently this script supports either passing the codes in the command line with the `-c`/`--codes` or with the `-f`/`--file` parameters. I have included an example of both these commands below.
#### Running using a File
Please specify the relative or absolute path to the file that you would like to use.
```
pipenv run main.py -f codes.txt
```#### Running use Codes
```
pipenv run main.py -c 276-BLW2-ZVD-ZD6 2BH-L9RG-TGV-2G6 277-42NM-Y92-MCJ
```### File Format
If using the File argument then save a txt file with the pokemon codes in the following structure. I have included a `codes.txt` file to provide an example of how the codes should be stored in the file.
```
276-BLW2-ZVD-ZD6
277-42NM-Y92-MCJ
2BH-L9RG-TGV-2G6
```