parent
f1f695c832
commit
66724911fc
@ -1,18 +1,29 @@
|
||||
# Environnement virtuel pour python
|
||||
python3 -m venv scrapy-env
|
||||
# Windows
|
||||
## Dépendances
|
||||
- [Python >= 3.5](https://www.python.org/downloads/windows/)
|
||||
- [Microsoft Visual C++ Build-tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
|
||||
|
||||
(unix-like) source scrapy-env/bin/activate
|
||||
*Ces modules doivent être installés :*
|
||||
|
||||
(windows) tutorial-env\Scripts\activate.bat
|
||||
<img src="./doc/img/micrapsoft-visualstudio.jpg" height="320" alt="Screenshot de l'installation des build-tools pour Windows"><br><br>
|
||||
|
||||
# Installation des dépendances
|
||||
python -m pip install --upgrade pip
|
||||
- [Librairie libxml2](https://www.lfd.uci.edu/~gohlke/pythonlibs/#libxml-python) (documentation en haut de page)
|
||||
|
||||
python -m pip install regex
|
||||
|
||||
## Environnement virtuel et modules python
|
||||
### Environnement virtuel
|
||||
|
||||
Mise en place d'un environnement virtuel pour scrapy dans lequel seront installées les dépendances :
|
||||
|
||||
python -m venv scrapy-env
|
||||
scrapy-env\Scripts\activate.bat
|
||||
|
||||
|
||||
### Modules
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install regex
|
||||
python -m pip install scrapy
|
||||
|
||||
# Lancement de scrapy
|
||||
## Lancement de scrapy
|
||||
cd src
|
||||
|
||||
scrapy crawl perils -O perils.csv
|
||||
Loading…
Reference in new issue