English 中文(简体)
Scrapy - Create a Project
  • 时间:2024-11-05

Scrapy - Create a Project


Previous Page Next Page  

Description

To scrap the data from web pages, first you need to create the Scrapy project where you will be storing the code. To create a new directory, run the following command −

scrapy startproject first_scrapy

The above code will create a directory with name first_scrapy and it will contain the following structure −

first_scrapy/
scrapy.cfg            # deploy configuration file
first_scrapy/         # project s Python module, you ll import your code from here
__init__.py
items.py              # project items file
pipepnes.py          # project pipepnes file
settings.py           # project settings file
spiders/              # a directory where you ll later put your spiders
__init__.py
Advertisements