title: mechanize._mechanize.FormNotFoundError: no form matching name 'q'
body: <p>Can anyone help me get this form selection correct?</p>
  
  <p>Trying to get a crawl of google, I get the error:
  mechanize._mechanize.FormNotFoundError: no form matching name 'q'</p>
  
  <p>Unusual, since I have seen several other tutorials using it, and:
  p.s. I don't plan to SLAM google with requests, just hope to use an automatic selector to take the effort out of finding academic citation pdfs from time to time.</p>
  
  <pre><code>&lt;f GET http://www.google.com.tw/search application/x-www-form-urlencoded
    &lt;HiddenControl(ie=Big5) (readonly)&gt;
    &lt;HiddenControl(hl=zh-TW) (readonly)&gt;
    &lt;HiddenControl(source=hp) (readonly)&gt;
    &lt;TextControl(q=)&gt;
    &lt;SubmitControl(btnG=Google ?j?M) (readonly)&gt;
    &lt;SubmitControl(btnI=?n???) (readonly)&gt;
    &lt;HiddenControl(gbv=1) (readonly)&gt;&gt;
  &gt;&gt;&gt; quit()
  
  
  
  
  import os, subprocess
  import re
  import mechanize
  from bs4 import BeautifulSoup
  #prepare mechanize
  br = mechanize.Browser()
  br.set_handle_robots(False)
  br.set_handle_equiv(False)
  br.addheaders = [('User-agent', 'Mozilla/5.0')] 
  br.open('http://www.google.com/')
  br.select_form('q')
  citation = ' www.stackoverflow.com '.strip() 
  #citation = GOOGLE_BASE + Citation
  print citation
  br.open('http://www.google.com/')
  br.select_form('q')
  br.form['q'] = citation
  br.submit()
  data = br.read()
  soup = BeautifulSoup(data)
  print soup
  </code></pre>