how to run in xp?
Peter Otten
__peter__ at web.de
Wed Sep 28 09:29:19 EDT 2011
=?gbk?B?ytjW6rT9zcM=?= wrote:
> it can run ,but there is still a problem ,nothing in my file.
> please run the code in xp+python32
> import urllib.request, urllib.parse, urllib.error
> exchange=['NASDAQ','NYSE','AMEX']
> for down in exchange:
> url='http://www.nasdaq.com/screening/companies-by-
industry.aspx?exchange='+down+'&render=download'
> file=urllib.request.urlopen(url).read()
> print (file)
> what you get is:
>
>>>>
> b''
> b''
> b''
>>>>
>
> how to fix it?
I get the expected output, but I'm on Linux. Are you using the latest bugfix
release (Python 3.2.2)? Can you download the data with your browser?
More information about the Python-list
mailing list