[Tutor] Getting web pages and formatting text

Alan G alan.gauld at freenet.co.uk
Thu Aug 4 23:01:14 CEST 2005


> Two questions :-
> 1)  Is it possible to download to your hard drive using python 
> various web pages ie if the pages have the structure
> http://address/node=xxx&pagretree=&fromdid=nx&objectid=ny

YEs, look at the urlib module documentation.

> 2)  Is it possible to use python to put text into a table I don't 
> mean an sql table I mean a text table.

An HTML table sure, otherwise its a formatted text string - using tabs 
probably.

If you mean a table as in MS Word - with lines and bold headers etc - 
then
thats a whole heap harder. HTML is my preferred option there.

HTH,

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld




More information about the Tutor mailing list