[BioPython] entering text into web forms

Andreas Kuntzagk andreas.kuntzagk at mdc-berlin.de
Thu Jun 19 16:15:11 EDT 2003


> I'm a relatively new biopython user. I know how to open the websites from 
> within python scripts, but I was wondering if it's also possible to enter a 
> text into a form window. 

I'm not sure, what you want. Do you want to get the resulting website
after you filled an form and pressed submit (or whatever) or do you want
to open a browser-window whith the form and some text already included?

The first you can do whith

import urllib
params = {"param1":"value", "param2":"another value"}

u =urllib.urlopen(url, urllib.urlencode(params))

The other I dont know.

Andreas



More information about the BioPython mailing list