Re: web page text extractor

2007-07-12 Thread Jon Rosebaugh
On 2007-07-12 04:42:25 -0500, kublai <[EMAIL PROTECTED]> said:
> For a project, I need to develop a corpus of online news stories.  I'm
> looking for an application that, given the url of a web page, "copies"
> the rendered text of the web page (not the source HTNL text), opens a
> text editor (Notepad), and displays the copied text for the user to
> examine and save into a text file. Graphics and sidebars to be
> ignored. The examples I have come across are much too complex for me
> to customize for this simple job. Can anyone lead me to the right
> direction?

You may find BeautifulSoup or templatemaker to be of assistance:

http://www.crummy.com/software/BeautifulSoup/
http://www.holovaty.com/blog/archive/2007/07/06/0128

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web based Reporting tool for Python

2007-08-07 Thread Jon Rosebaugh
On 2007-08-06 23:29:16 -0500, Madhu Alagu <[EMAIL PROTECTED]> said:

> Hi
> I am looking template based report tools for python.It has the ability
> to deliver rich content onto the screen, to the printer or into PDF,
> HTML, XLS, CSV and XML files.

I don't think this has been implemented in Python because it's a pretty 
boring thing to do, and things like JasperReports (in Java) and Crystal 
Reports already have the market pretty well tied up. What my company 
did was to use JasperReports via a web service we set up.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web based Reporting tool for Python

2007-08-08 Thread Jon Rosebaugh
On 2007-08-07 23:35:26 -0500, Madhu Alagu <[EMAIL PROTECTED]> said:

> Thanking so much for all the informations and links.I would like to
> use Mako Templates(www.makotemplates.org).I like to use simple and
> python default module...

Mako is an excellent template system, but you'll have a lot of work to 
do making it into a reporting system.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web based Reporting tool for Python

2007-08-12 Thread Jon Rosebaugh
On 2007-08-12 06:08:49 -0500, Steve Holden <[EMAIL PROTECTED]> said:

> Steve Holden wrote:
>> Madhu Alagu wrote:
>>> On Aug 8, 4:57 pm, Jon Rosebaugh <[EMAIL PROTECTED]> wrote:
>>>> On 2007-08-07 23:35:26 -0500, Madhu Alagu <[EMAIL PROTECTED]> said:
>>>> 
>>>>> Thanking so much for all the informations and links.I would like to
>>>>> use Mako Templates(www.makotemplates.org).Ilike to use simple and
>>>>> python default module...
>>>> Mako is an excellent template system, but you'll have a lot of work to
>>>> do making it into a reporting system.
>>> 
>>> 
>>> Any reporting template in python ?
>>> 
>> 
>> Dabo (www.dabodev.com) is certainly heading that way, but I am not sure 
>> how far it's got yet.
>> 
> Sorry, Dabo isn't web-based. You could look at Kid, Genshi, Cheetah, ...
> 
> Or you could do a Google search for "python web template" and see what 
> comes up. There are many good contenders.

Sure, but again, these aren't reporting engines; they're just template 
engines. And I don't think any of the web template engines have PDF 
output.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Generating HTML

2007-09-12 Thread Jon Rosebaugh
On 2007-09-11 23:33:18 -0500, "Sebastian Bassi" 
<[EMAIL PROTECTED]> said:

> Hello,
> 
> What are people using these days to generate HTML? I still use
> HTMLgen, but I want to know if there are new options. I don't
> want/need a web-framework a la Zope, just want to produce valid HTML
> from Python.
> Best,
> SB.

Other folks have suggested Mako, and that's an excellent option. But 
I'd like to also suggest Brevé: a html DSL.

http://breve.twisty-industries.com/

html [
head [
title [ 'A Brevé Template' ]
],

body [
h1 [ 'Briefly, Brevé' ], br,
div ( style = 'text-align: center;' ) [
span [ '''
As you can see, Brevé maps very
directly to the final HTML output.
''' ]
]
]
]

-- 
http://mail.python.org/mailman/listinfo/python-list