download web page with python
Ng Pheng Siong
ngps at madcap.dyn.ml.org
Thu Dec 16 10:16:30 EST 1999
According to <geoff at gnaa.net>:
> I want to do this, but the web page (symantec's antivirus signature
> update page--http://www.symantec.com/avcenter/download.html) has a form
> to ask which product you want, then runs a CGI script, and gives you
> info back.
Something along these lines:
import urllib
url = "http://www.symantec.com/avcenter/cgi-bin/navsarc.cgi"
post_data = urllib.urlencode({"PROD":"N95", "LANG":"US"})
url_obj = urlopen(url, post_data)
print url_obj.readlines()
--
Ng Pheng Siong <ngps at post1.com> * http://www.post1.com/home/ngps
More information about the Python-list
mailing list