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