[Tutor] Praser
Alan Gauld
alan.gauld at btinternet.com
Sun Oct 23 10:58:27 CEST 2011
On 23/10/11 05:09, Henry wrote:
Please delete irrelevant material from your messages.
In particular do not send the entire digest content to the list.
> First of all, I want to able to download the data from the web into
> the database. Here is the part of the link:
>
> http://boc.quotepower.com/web/bochk/stocks_mktTransactions.jsp?lang=en&domain=NCBHK&rand=-74344993&lastLevel1Name=nav_stocks&lastStock=5
>
> I hope I can use the download data to do some analysis.
Look at the urllib and urllib2 modules in the standard library.
They allow you to treat a url like a file (almost)
HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list