Im currently having some issues trying to adapt my scrapy program. The thing im trying do is make a different parser work depending on the "site" im in.
Currently i have this start request
def start_requests(self):
txtfile = open('productosABuscar.txt', 'r')
keywords = txtfile.readlines()
txtfile.close()
for keyword in keywords:
yield Request(self.search_url.format(keyword))
I want to find a way to, depending on which keyword i get from the txt file, call different parsers for extracting the data from the page.
Is it there a way to accomplish this?