This tutorial helped me in order to gather the first drop down list entries on a website. But I am not able to get the data of the second conditional/dependent drop down box with Scrapy.
Assuming the following procedure is the way to go, how does step 2 work? The values never appear so far...
- Get list entries of first drop down box
- Select 1st value of first drop down box.
- get all dependent drop down values.
- iterate though the first drop down list...
I think the code below needs to be adjusted as the code is for a submit form:
for i in range(len(brandCategoryList)):
# Generate new request for each brand category's page
yield FormRequest("http://www.xxxxxxxxxx.com",
method='POST',
formdata={'BrandName':'','CatBrand':brandCategoryList[i],'submit1':'Find+Product'},
callback=self.parseBrandPage,
meta={'brandCategoryId':i,'brandCategoryName':brandCategoryList[i]})
Thanks