- import scrapy
- from scrapy import Selector
- import requests as r
- from scrapy.crawler import CrawlerProcess
class SpiderClassName(scrapy.Spider):
name = 'SpiderName'
def start_requests(self):
# code here
def parse(self, response):
#code here
process = CrawlerProcess() #--> instansiating process
process.crawl(SpiderClassName) #--> telling process which Spider to run
process.start() #--> running spider