Hi all<br><div class="gmail_quote">i want to access a web page through python script, fillup the necessary fields, <br>and press submit button (which does POST call) and retrieve the result page and retrieve some values from it.
<br><br>Here is the script i have written till now.
<br><br>>import urllib2<br>> # create array of name/value pairs<br>> self.params = urllib.urlencode({'seqname': 'BioSequence', 'sequence': 'ATACATTATCCAAACATAAAAAGCATGGCTT'})<br>> 
<br>> # send http-post<br>> request = urllib.urlopen("<a href="http://www.hydrazome.metazome.net/search.php" target="_blank">http://www.hydrazome.metazome.net/search.php</a>", params)<br>> <br>> # read back each line of reply
<br>> line = request.read()<br>>print line<br><br>This script fills up the correct values in the search.php page.But i am not sure if it is doing the POST (submit call).<br>Beacause in 'line' varialble, i am getting the 
search.php page.Not the result page which is blast_results.php.<br><br>How to retrieve the result page?<br><br><br><br>Thanks <br><font color="#888888">Suyash<br>
</font></div><br>