This application scrapes price details for Magic: The Gathering cards from Cardmarket using proxies and stores the data in a CSV file.
Pricing source: https://www.cardmarket.com/en Free proxy sources: https://spys.me/, https://free-proxy-list.net/
To use this application, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/mtg-price-scraper.git
- Navigate to the project directory:
cd mtg-price-scraper
- Install dependencies:
pip install -r requirements.txt
Log files are stored in the app.log-File. You can view the log files to monitor the application's activity and diagnose any issues.
To run the application, use the following command:
python main.py [-h] [-i] [-fi FILE_IN] [-fo FILE_OUT]
show help
urate@uRate:~/datafetcher$ python main.py -h
output:
usage: main.py [-h] [-c] [-token TOKEN] [-api {av,eod,yf}]
options:
-h, --help show this help message and exit
-i, --init only process initial lines (without timestamp)
-f FILE_IN, --file-in FILE_IN
path to intput file
-o FILE_OUT, --file-out FILE_OUT
path to output file
-p {spys,fpl,file}, --proxy-mode {spys,fpl,file}
Proxy retrieval mode
The input .csv file expects the following fields for each card:
- name
- set_code
- set_name
- collector_number
- foil
- rarity
- quantity
- mana_box_id
- scryfall_id
- purchase_price
- misprint
- altered
- condition
- language
- purchase_price_currency
this is basically the layout provided by the export of https://www.manabox.app/