A selenium script to find and save signed/graded/altered MTG card listings from TCGPlayer. Will print all outputs into a .xlsx file. I am not responsible for any issues resulting from the usage of this script. (Colloquially known as AssWiper since it scrapes shit off the website)
Python 3.11.9 (Later versions should work but this is what I use
Google Chrome (Latest Version)
Something to open .xlsx files (you can use Google Sheets iirc)
selenium
xlsxwriter
requests
colorama
If you follow my installation tutorial all these libraries will be installed through requirements.txt
- Install python3 and google chrome if you haven't already
- Download and extract this repository
- Rightclick anywhere in the extracted folder and click "Open in Command Prompt"
- Run
pip install -r requirements.txtto install all necessary libraries - Done! You can now run
python main.py --helpto see what arguments you can use or read the argument documentation below!
all outputs from the scraper will be put into an xlsx file in the same folder as the script
python main.py -s 43db324c -c Green -t Creature
This command will scan listings for all green creatures from the seller with the seller ID '43db324c'.
python main.py -n "lightning bolt" -c Red
This command will scan listings for all red cards with lightning bolt in their text.
python main.py -r Mythic -a -g
This command will scan listings for all mythic cards, including searching for alters and graded cards.
Add as many arguments as you'd like to the command python main.py to get a smaller search!
The help command.
Example command: python main.py -h
Search for a card by name. Place quotation marks around this query.
Example command: python main.py -n "palladium myr"
Search for a card by color. Acceptable values are White, Blue, Black, Red, Green, Colorless.
Example command: python main.py -c Colorless
Search for a card by tcgplayer Seller ID. Go to the feedback page of the seller you want, and their seller ID will be in the URL (ex. 43db324c).
Example command: python main.py -s 43db324c
Search for a card by card type. Acceptable values are Creature, Artifact, Legendary, Land, Instant, Sorcery, Enchantment, Planeswalker.
Example command: python main.py -t Artifact
Search for a card by rarity. Acceptable values are Common, Uncommon, Rare, Mythic, Special, Token, Land, Promo.
Example command: python main.py -r Rare
Add the filters for altered cards to the task. Will add "alter" to the filter words.
Example command: python main.py -a
Add the filters for graded cards to the task. Will add "bgs", "cgc", "psa", "graded" to the filter words.
Example command: python main.py -g
Meant for development, adds extra debug logs to the command line.
Example command: python main.py -v
This project was inspired by https://github.com/davidteather/TCGPlayer-Scraper, an old script that saves all listings with photos from tcgplayer based on a list of links.