You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
945 B
29 lines
945 B
# 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/)
|
|
|
|
*Ces modules doivent être installés :*
|
|
|
|
<img src="./doc/img/micrapsoft-visualstudio.jpg" height="320" alt="Screenshot de l'installation des build-tools pour Windows"><br><br>
|
|
|
|
- [Librairie libxml2](https://www.lfd.uci.edu/~gohlke/pythonlibs/#libxml-python) (documentation en haut de page)
|
|
|
|
|
|
## 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
|
|
cd src
|
|
scrapy crawl perils -O perils.csv |