BTS_Spy
(Traduction en Français plus bas/French Translation Below)
Training Project to scrap data on training site books.toscrape.com
Part of OpenClassromms "DA Python" formation, 2nd Project
It's better to have Python > 3.2.2 for decent html.parser
To install virtual environment:
Open a terminal and navigate into the downloaded folder containing BTS_Spy.py and requirements.txt, and run this commands:
Python -m venv env
source env/bin/activate
pip install -r requirements.txt
You can then run the program with :
Python BTS_Spy.py
It will generate one csv file by category in the folder Data
Français/French :
Il est préférable d'avoir une version Python > 3.2.2 pour avoir un module html.parser correct
Pour installer l'environement virtuel :
Ouvrir un terminal et se placer dans le dossier téléchargé contenant BTS_Spy.py et requirements.txt, et lancez les commandes suivantes :
Python -m venv env
source env/bin/activate
pip install -r requirements.txt
Vous pouvez ensuite lancer le programme avec :
Python BTS_Spy.py
Cela va générer un fichier csv par catégorie dans le dossier Data