you can do it by hand ,<br>1.open  <br><a href="http://www.flvcd.com/" target="_blank">http://www.flvcd.com/</a>'<br>2.input  <br><a href="http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html" target="_blank">http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html</a><br>

3.click  submit <br>you can get  <br>       <a href="http://mov.bn.netease.com/movie/2012/1/V/7/S7MKQOBV7.flv" target="_blank">http://mov.bn.netease.com/movie/2012/1/V/7/S7MKQOBV7.flv</a><br><br>i want to  emulate it  in python with  mechanize,here is my code ,why i can't get  the  right result:<br>

 <span></span><span></span><ins style="display:inline-table;border:medium none;min-height:60px;margin:0pt;padding:0pt;width:468px"><a href="http://mov.bn.netease.com/movie/2012/1/V/7/S7MKQOBV7.flv" target="_blank">http://mov.bn.netease.com/movie/2012/1/V/7/S7MKQOBV7.flv</a><br>
<br><br></ins>
<br>import mechanize<br>import cookielib<br>import lxml.html<br>br.addheaders = 
[('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) 
Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]<br>br = mechanize.Browser()<br>
br.set_handle_robots(False) <br><br>r = br.open('<a href="http://www.flvcd.com/" target="_blank">http://www.flvcd.com/</a>')<br><div id=":12j">for f in br.forms():<br>    print f<br>br.select_form(nr=0)<br>br.form['kw']='<a href="http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html" target="_blank">http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html</a>'<br>

print  br.submit().read()<br><br>why??<br></div>