Problem in reading a URL

Simon Brunning simon at brunningonline.net
Fri Dec 8 12:07:11 EST 2006


On 12/8/06, Χρυσάνθη Αϊναλή <chrysain at gmail.com> wrote:
> 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>

Have you tried that URL on your browser?

-- 
Cheers,
Simon B
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/


More information about the Python-list mailing list