[Tutor] html and python
Grigor Kolev
grigor.kolev at gmail.com
Wed Feb 10 21:26:47 CET 2010
В 15:02 -0500 на 10.02.2010 (ср), Kent Johnson написа:
> On Wed, Feb 10, 2010 at 2:54 PM, Grigor Kolev <grigor.kolev at gmail.com> wrote:
> > В 14:39 -0500 на 10.02.2010 (ср), Kent Johnson написа:
> >> On Wed, Feb 10, 2010 at 2:30 PM, Grigor Kolev <grigor.kolev at gmail.com> wrote:
> >> > Hi.
> >> > I want to make a list of E-mail, photos and some additional data.
> >> > But I want this list to be displayed in one site.
> >> > How can I send data from a list of site page. Which module should I use
> >>
> >> I don't understand "send data from a list of site page". Are you
> >> making a web site? Dynamic or static? Are you asking how to build an
> >> HTML page in Python?
> >>
> >> Kent
> > Yes how can I build html file with Python.
> > And how can i make a script who start every day and refresh the html pages
>
> HTML is just text. Do you know what you want your HTML to look like?
> In the simplest case, you can write the HTML directly from Python to a
> file. For more complicated files you may want to use some kind of
> templating or HTML-generation library.
>
> You can schedule a script to run every day using cron (*nix) or
> Scheduled Tasks (Windows).
>
> What is your level of experience?
>
> You will get better answers if you give us more information in your
> questions. Don't make us work for every bit of your problem.
>
> Kent
I apologize to my question is incorrectly set.
We have a mail list and we want to do in site a list of all participants
with their photos and names.
List with people is saved in the txt file.
I want to open this file. Take all mail address and to do formating the
data.
Then with loop to do parsing all data and to do send in the html.
I can open and save as plain text document.
File = file(r'/home/user/test.html', 'w')
But if I refresh the data every day it by a slowly.
--
Grigor Kolev <grigor.kolev at gmail.com>
More information about the Tutor
mailing list