Creation of new directories and files by commands 'scrapy startproject' and 'scrapy genspider'


(base) D:\exp_54>scrapy startproject azure
New Scrapy project 'azure', using template directory 'c:\users\ashish\appdata\local\continuum\anaconda3\lib\site-packages\scrapy\templates\project', created in:
    D:\exp_54\azure

You can start your first spider with:
    cd azure
    scrapy genspider example example.com

(base) D:\exp_54>cd azure

(base) D:\exp_54\azure>tree /f
Folder PATH listing for volume DATA

D:.
│   scrapy.cfg
│
└───azure
    │   items.py
    │   middlewares.py
    │   pipelines.py
    │   settings.py
    │   __init__.py
    │
    ├───spiders
    │   │   __init__.py
    │   │
    │   └───__pycache__
    └───__pycache__

(base) D:\exp_54\azure>scrapy genspider azurie wikipedia.org
Created spider 'azurie' using template 'basic' in module:
  azure.spiders.azurie

(base) D:\exp_54\azure>tree /f
Folder PATH listing for volume DATA

D:.
│   scrapy.cfg
│
└───azure
    │   items.py
    │   middlewares.py
    │   pipelines.py
    │   settings.py
    │   __init__.py
    │
    ├───spiders
    │   │   azurie.py
    │   │   __init__.py
    │   │
    │   └───__pycache__
    │           __init__.cpython-37.pyc
    │
    └───__pycache__
            settings.cpython-37.pyc
            __init__.cpython-37.pyc


(base) D:\exp_54\azure>



No comments:

Post a Comment