All pastes #488850 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-15 06:24 UTC
rendered paste body
import urllib

def question():
    url = "http://www.ncbi.nlm.nih.gov:80/entrez/query.fcgi"
    data = {
        'orig_db': 'PubMed',
        'db': 'PubMed',
        'term': 'wortmannin',
        'cmd': '',
        }
    urldata = urllib.urlencode(data)
    results = urllib.urlopen(url, urldata).read()
    open('/home/levon/tst.html', 'w').write(results)

if __name__ == '__main__': question()

HTH.