Create scrapy in python virtual environment

Create scrapy

Enter the dos command window.
First, we enter a file directory. We will create a scrapy file in this directory.
Insert image description hereThen we run our virtual environment scrapytest:
enter workon scrapytest
where scrapytest is the name of the virtual environment we built
Insert image description here
and then enter scrapy. startproject scrapy_spider
scrapy_spider is the name of the scrapy project we are going to create.
Insert image description hereAfter that, we can see our project and various scrapy files under D:\WorkProject\scrapyproject.
Insert image description here
Insert image description hereAfter that, we enter the scrapy project and create a website file that we will crawl. .
Insert image description here
Insert image description here
Then we import the scrapy_spider project into pycharm

Guess you like

Origin blog.csdn.net/qq_43767886/article/details/105282386