[Tutor] confusing HTTP error while using urlopen

2008-07-18 Thread asdg asdg
I'll skip the introduction and go right to the question cause it's as simple as it's confusing for me. Why does urllib2.urlopen("http://www.anuntul.ro";) return HTTPError: HTTP Error 400: Bad Request, while the site opens with no problems in any regular browser. Thank you in advance for answeri

Re: [Tutor] Newbie question

2008-07-01 Thread asdg asdg
You need to add the folder containing this module to your PYTHONPATH. To do this, go to you interpreter and type: >>> import sys >>> sys.path.append("C:\Python25\ExampleFolder") That path was just an example, insert your own path leading to the desired folder there. Python imports it's modules