Problem in reading a URL

Χρυσάνθη Αϊναλή chrysain at gmail.com
Fri Dec 8 11:47:58 EST 2006


Hi,

I get an error, when I am trying to read URL.
Where is the Problem?

Thank u very much for all ideas!!!

sincerely

Chrysanthi


from urllib2 import *

filename=urlopen('http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?query_key=1&db=nucleotide&qty=1&c_start=1&uids=&dopt=fasta&dispmax=20&sendto=t')

for line in filename.readlines():

     print line,


Error: History is unavailable either because it has expired or because
your system cannot accept <A
href='/entrez/query/static/faq.html#Acceptscookies'>cookies</A>



More information about the Python-list mailing list