import scrapy class PricingTableSpider(scrapy.Spider): name = "pricing_table" start_urls = ["https://catalog.example.com/pricing/"] def parse(self, response): for row in response.xpath('//table[@id="pricing"]/tbody/tr'): yield { "plan": row.xpath("normalize-space(./td[1])").get(), "price": row.xpath("normalize-space(./td[2])").get(), }