title: Scrapy & captcha
body: <p>I use scrapy for submit form in site <a href="https://www.barefootstudent.com/jobs" rel="nofollow">https://www.barefootstudent.com/jobs</a> (any links into page, etc <a href="http://www.barefootstudent.com/los_angeles/jobs/full_time/full_time_nanny_needed_in_venice_217021" rel="nofollow">http://www.barefootstudent.com/los_angeles/jobs/full_time/full_time_nanny_needed_in_venice_217021</a>)</p>
  
  <p>My scapy bot successfully log in but i can not avoid captcha.
  For form submit i use scrapy.FormRequest.from_reponse</p>
  
  <pre><code>frq = scrapy.FormRequest.from_response(response, formdata={'message': 'itttttttt', 
                                     'security': captcha, 'name': 'fx',
                                     'category_id': '2', 'email': 'ololo%40gmail.com', 'item_id': '216640_2', 'location': '18', 'send_message': 'Send%20Message'
                                     }, callback=self.afterForm)
  
      yield frq
  </code></pre>
  
  <p>i want load captcha image from this page, and manual input into script runtime.
  etc</p>
  
  <pre><code>captcha = raw_input("put captcha in manually&gt;")  
  </code></pre>
  
  <p>I try </p>
  
  <pre><code> urllib.urlretrieve(captcha, "./captcha.jpg")
  </code></pre>
  
  <p>But this method load incorrect captcha (site reject my input). I try call urllib.urlretieve repeatedly in one run script and every time he returns the different captchas :(</p>
  
  <p>After that i tried use <strong>ImagePipeline</strong>.
  But my problem is that <strong>return item</strong> (downloading image) occurs only after the function has finished executed, even if I use yeild.</p>
  
  <pre><code> item = BfsItem()
   item['image_urls'] = [captcha]
   yield item
   captcha = raw_input("put captcha in manually&gt;")  
   frq = scrapy.FormRequest.from_response(response, formdata={'message': 'itttttttt', 
                                     'security': captcha, 'name': 'fx',
                                     'category_id': '2', 'email': 'ololo%40gmail.com', 'item_id': '216640_2', 'location': '18', 'send_message': 'Send%20Message'
                                     }, callback=self.afterForm)
   yield frq
  </code></pre>
  
  <p>At that moment, when my script request input, the picture is not download!</p>
  
  <p>How i can modify my script and can call FormRequest after manual input captcha?</p>
  
  <p>Thank you very much! </p>