This program grabs pages from the official Pokemon Card Database Webpage and runs through each cards grabbing data to be added to the database. This code is designed to be run as a cron job, once or twice a month to fetch the latest card releases from Pokemon.
This project has a requirements.txt file to allow you to easily install the dependencies.
pip install -r requirements.txt
The following packages will be installed:
- pycryptodome
- pyrebase
- beautifulsoup4
- python-dotenv
- mypy
- pycodestyle
- pylint
Run start.py to start the webscraper
py start.py
- MyPy:
mypy start.py - Pylint:
mypy start.py - pycodestyle:
pycodestyle start.py
- Url to card image
- Card name
- Stage
- HP
- Type
- Attack:
- Energy Cost
- Attack Name
- Attack Description
- Attack Damage
- Weakness
- Resistance
- Retreat Cost
- Illustrator
- Card Number
Card Set & Subset numbers must be set in the code & it will run through that subset
- run through all sets
- check for new sets
- separate cards by type (Pokemon, Trainer, Energy)