You have to yield that FormRequest, by writing '*yield* 
scrapy.FormRequest.from_response(...)'

On Sunday, November 9, 2014 3:32:37 AM UTC+8, Mahmoud Abdel-Fattah wrote:
>
> I'm parsing a page that has some partials that being loaded using AJAX. 
> So, I want to make a couple of FormRequest and get the data to insert it in 
> the same item... How can I do that?
>
> I already tried the following, inside parse(), but it doesn't call the 
> callback function.
>
> for color in 
> response.xpath('//select[@id="ctl00_MainContent_ddlColor"]/option/@value').extract():
>          scrapy.FormRequest.from_response(response,
>                 formdata={'ctl00$MainContent$ddlColor': color},
>                 callback=self.get_images,
>                 dont_filter=True)
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to