Re: Problem in reading a URL

2006-12-08 Thread scum
This is not a python problem. That is the text of the site when you go to it. The site uses cookies to store a session of your visit. Using python bypasses that cookie and throws an error. You will be better served using teh mechanize library. http://wwwsearch.sourceforge.net/mechanize/ Even

Re: Problem in reading a URL

2006-12-08 Thread Simon Brunning
On 12/8/06, Χρυσάνθη Αϊναλή <[EMAIL PROTECTED]> 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

Re: Problem in reading a URL

2006-12-08 Thread Fredrik Lundh
Χρυσάνθη Αϊναλή wrote: > I get an error, when I am trying to read URL. > Where is the Problem? did you read the error message you got from the server? > Error: History is unavailable either because it has expired or because > your system cannot accept href='/entrez/query/static/faq.html#Accepts

Problem in reading a URL

2006-12-08 Thread Χρυσάνθη Αϊναλή
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=