A Cardmarket scraper as a command line tool. This will work with a linux OS only, because it uses command line to launch and install docker.
sudo apt-get install libxml2-dev libxslt-dev docker
python -m pip install -r requirements.txt
Setup on a Virtual Machine (example with Kali)
Download the vm of your choice (I used Kali Linux (https://www.kali.org/get-kali/#kali-virtual-machines ) )
Theses instructions are best suited for debian based minux
## Debian Based # install needed packages printf "%s\n" "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" |\ sudo tee /etc/apt/sources.list.d/docker-ce.list curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - sudo apt update && sudo apt upgrade sudo apt install -y docker-ce libxml2-dev libxslt-dev # install cmscrape git clone https://github.com/DrankRock/CMScrape-console.git cd CMScrape-console python3 -m pip install -r requirements.txtThen, with the kali linux virtual machine, I had to add this command :
export PATH="/home/kali/.local/bin:$PATH"
usage: run.py [-h] -i INPUT -o OUTPUT
Cardmarket information scraper from a list of links
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input file or url of the input file
-o OUTPUT, --output OUTPUT
Output file
python run.py -i pokemon_list.txt -o pokemon_out.csv
https://www.cardmarket.com/fr/Pokemon/Products/Singles/10th-Movie-Commemoration-Set/Alto-Mares-Latios?language=7&minCondition=2
https://www.cardmarket.com/fr/Pokemon/Products/Singles/10th-Movie-Commemoration-Set/Alto-Mares-Latias?language=7&minCondition=2
https://www.cardmarket.com/fr/Pokemon/Products/Singles/10th-Movie-Commemoration-Set/Timeless-Celebi?language=7&minCondition=2
https://www.cardmarket.com/fr/Pokemon/Products/Singles/10th-Movie-Commemoration-Set/Tree-of-Beginnings-Mew?language=7&minCondition=2
https://www.cardmarket.com/fr/Pokemon/Products/Singles/11th-Movie-Commemoration-Set/Pikachu-Lv10?language=7&minCondition=2