I basically have a list of titles to search on a website which are stored in a csv.
I'm extracting those values and then trying to add append them to the search link in the start_urls
function.
However, when I run the script, it only takes the last value of the list. Is there any particular reason why this happens?
class MySpider(CrawlSpider):
name = "test"
allowed_domains = ["example.com"]
import pandas as pd
df = pd.read_csv('test.csv')
saved_column = df.ProductName
for a in saved_column:
start_urls = ["http://www.example.com/search?noOfResults=20&keyword="+str(a)"]
def parse(self,response):