extracting contents from a text file

Terry Reedy tjreedy at udel.edu
Sat Jun 12 18:59:01 EDT 1999


In article <375B5880.992B0C6C at mediamanager.com.sg>, john at mediamanager.com.sg 
says...

>I would like to extract the text contents residing in another server and
>display it as html format using python. Can anyone help me I am new to
>python.

You need three separate modules to 
1. retrieve text file (1 of url libs or possible FTP lib);
2. process file (hope string or re rather than parser is sufficient);
3. write html (for instance, HTMLgen on starship site -- see python.org).

TJ Reedy





More information about the Python-list mailing list