class Finaldata(scrapy.Spider):
name = 'final_spider'
start_urls = ["https://www.1mg.com/drugs/celetop-200mg-capsule-309137"]
//website to scrape
def parse(self, response):
items = FinallinksItem()
//xpath used
product_name = response.xpath('//*@id="drug_header"]/div/div/div[2]/div[1]/h1').extract()
对此没有任何输出。