Here is a very simple Python script utilizing urllib: import urllib url = "http://commons.wikimedia.org/wiki/Commons:Featured_pictures/chronological" print url print file = urllib.urlopen( url ) mime = file.info() print mime print file.read() print file.geturl()
However, when i ecexute it, i get an html error ("access denied"). On the one hand, the funny thing though is that i can view the page fine in my browser, and i can download it fine using curl. On the other hand, it must have something to do with the URL because urllib works fine with any other URL i have tried ... Any ideas? I would appreciate very much any hints or suggestions. Best regards, Gabriel. -- /-----------------------------------------------------------------------\ | If you know exactly what you will do -- | | why would you want to do it? | | (Picasso) | \-----------------------------------------------------------------------/ -- http://mail.python.org/mailman/listinfo/python-list