Re: Python/HTML integration: phileas v0.3 released

2009-11-28 Thread Aahz
In article <6ded5cc9-5491-43d3-849c-17fcfaaec...@k17g2000yqh.googlegroups.com>, papa hippo wrote: > >The prime goal of 'phileas' is to enable html code to be seamlessly >included in python code in a natural looking syntax, without resorting >to templatng language. > >see: > >http://larry.myerscou

Re: Python/HTML integration: phileas v0.3 released

2009-11-23 Thread J Kenneth King
papa hippo writes: > On 20 nov, 09:02, Stefan Behnel wrote: >> papa hippo, 19.11.2009 19:53: >> >> > The prime goal of 'phileas' is to enable html code to be seamlessly >> > included in python code in a natural looking syntax, without resorting >> > to templatng language. >> >> I assume you know

Re: Python/HTML integration: phileas v0.3 released

2009-11-20 Thread papa hippo
On 20 nov, 09:02, Stefan Behnel wrote: > papa hippo, 19.11.2009 19:53: > > > The prime goal of 'phileas' is to enable html code to be seamlessly > > included in python code in a natural looking syntax, without resorting > > to templatng language. > > I assume you know XIST, ElementTree's ElementMa

Re: Python/HTML integration: phileas v0.3 released

2009-11-20 Thread papa hippo
On 19 nov, 20:18, Steve Howell wrote: > On Nov 19, 10:53 am, papa hippo wrote: > > > The prime goal of 'phileas' is to enable html code to be seamlessly > > included in python code in a natural looking syntax, without resorting > > to templatng language. > > > see: > > >http://larry.myerscough.nl

Re: Python/HTML integration: phileas v0.3 released

2009-11-20 Thread Daniel Fetchinson
>> The prime goal of 'phileas' is to enable html code to be seamlessly >> included in python code in a natural looking syntax, without resorting >> to templatng language. >> >> see: >> >> http://larry.myerscough.nl/phileas_project/ >> >> I intend to submit phileas to the python.announce forum with

Re: Python/HTML integration: phileas v0.3 released

2009-11-20 Thread Stefan Behnel
papa hippo, 19.11.2009 19:53: > The prime goal of 'phileas' is to enable html code to be seamlessly > included in python code in a natural looking syntax, without resorting > to templatng language. I assume you know XIST, ElementTree's ElementMaker, and all those other ways of generating XML/HTML

Re: Python/HTML integration: phileas v0.3 released

2009-11-20 Thread Steve Howell
On Nov 19, 10:53 am, papa hippo wrote: > The prime goal of 'phileas' is to enable html code to be seamlessly > included in python code in a natural looking syntax, without resorting > to templatng language. > > see: > > http://larry.myerscough.nl/phileas_project/ > > I intend to submit phileas to

Re: Python HTML parser chokes on UTF-8 input

2008-10-17 Thread John Nagle
Johannes Bauer wrote: Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser UTF-8 code, it chokes. The code is something like

Re: Python HTML parser chokes on UTF-8 input

2008-10-10 Thread Marc 'BlackJack' Rintsch
On Fri, 10 Oct 2008 00:13:36 +0200, Johannes Bauer wrote: > Terry Reedy schrieb: >> I believe you are confusing unicode with unicode encoded into bytes >> with the UTF-8 encoding. Having a problem feeding a unicode string, >> not 'UFT-8 code', which in Python can only mean a UTF-8 encoded byte >>

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Terry Reedy
Johannes Bauer wrote: Terry Reedy schrieb: Johannes Bauer wrote: Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser UTF-8

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Jerry Hill
On Thu, Oct 9, 2008 at 4:54 PM, Johannes Bauer <[EMAIL PROTECTED]> wrote: > Hello group, > > Now when I take "website" directly from the parser, everything is fine. > However I want to do some modifications before I parse it, namely UTF-8 > modifications in the style: > > website = website.replace(

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Johannes Bauer
Terry Reedy schrieb: > Johannes Bauer wrote: >> Hello group, >> >> I'm trying to use a htmllib.HTMLParser derivate class to parse a website >> which I fetched via >> httplib.HTTPConnection().request().getresponse().read(). Now the problem >> is: As soon as I pass the htmllib.HTMLParser UTF-8 code,

Re: Python HTML parser chokes on UTF-8 input

2008-10-09 Thread Terry Reedy
Johannes Bauer wrote: Hello group, I'm trying to use a htmllib.HTMLParser derivate class to parse a website which I fetched via httplib.HTTPConnection().request().getresponse().read(). Now the problem is: As soon as I pass the htmllib.HTMLParser UTF-8 code, it chokes. The code is something like

Re: python html 2 image (png)

2006-10-26 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Diez B. Roggisch wrote: > Whatever lunix is, […] An operating system for the Commodore 64. `LUnix NG` Website: http://lng.sourceforge.net/ :-) Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: python html 2 image (png)

2006-10-26 Thread joe Li
Thanks a lot.Please forgive my careless mistake, I am completely a new user^-^2006/10/26, Fredrik Lundh <[EMAIL PROTECTED]>: joe Li wrote:> **class Bunch(object):> def __init__(self, **fields): > self.__dict__ = fields>> p = Bunch(x=2.3, y=4.5)> print p>> print p.__dict__>> I dont' unde

Re: python html 2 image (png)

2006-10-26 Thread Fredrik Lundh
joe Li wrote: > **class Bunch(object): > def __init__(self, **fields): > self.__dict__ = fields > > p = Bunch(x=2.3, y=4.5) > print p > > print p.__dict__ > > I dont' understand the usage of the double * here, could anyone explain > it for me? if you're

Re: python html 2 image (png)

2006-10-26 Thread joe Li
class Bunch(object):    def __init__(self, **fields):     self.__dict__ = fields    p = Bunch(x=2.3, y=4.5)print p print p.__dict__I dont' understand the usage of the double * here, could anyone explain it for me? thanks. -- http://mail.python.org/mailman/listinfo/pyth

Re: python html 2 image (png)

2006-10-26 Thread baur79
thanks Diez i will start with your suggestions let see what happen On Oct 25, 11:27 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > >> what tools are you using to do that today? > > > where are many of EXE programs > > but i need python solution for adding it to

Re: python html 2 image (png)

2006-10-25 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: >> what tools are you using to do that today? > > where are many of EXE programs > but i need python solution for adding it to my automate program under > lunix Whatever lunix is, under linux, a popular free OS you could e.g. use PyKDE and let Qt render a KHTML-compone

Re: python html 2 image (png)

2006-10-25 Thread baur79
> what tools are you using to do that today? where are many of EXE programs but i need python solution for adding it to my automate program under lunix Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > how can i render html page to png image > > ex: > > > > http://www.website.com/index.html

Re: python html 2 image (png)

2006-10-25 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > how can i render html page to png image > ex: > > http://www.website.com/index.html -> index.png what tools are you using to do that today? -- http://mail.python.org/mailman/listinfo/python-list

Re: python html rendering

2006-10-04 Thread Paul Boddie
Pierre Imbaud wrote: > Hi, Im looking for a way to display some python code > in html: with correct indentation, possibly syntax hiliting, dealing > correctly with multi-line comment, and... generating valid html code if > the python code itself deals with html (hence manipulates tag litterals. > T

Re: python html rendering

2006-10-04 Thread Duncan Booth
"GHUM" <[EMAIL PROTECTED]> wrote: >> Hi, Im looking for a way to display some python code >> in html: with correct indentation, possibly syntax hiliting, dealing >> correctly with multi-line comment, > > > the usual way is to create your own web-framework > Or you could use an existing web frame

Re: python html rendering

2006-10-04 Thread Gerard Flanagan
Fredrik Lundh wrote: > Pierre Imbaud wrote: > > > I rather thought of some module built on python parser, generating html > > or xml, ideally customizable. > > see "colorizer.py" and "element_colorizer.py" in this directory: > > http://svn.effbot.python-hosting.com/stuff/sandbox/pythondoc >

Re: python html rendering

2006-10-04 Thread GHUM
Pierre, > Hi, Im looking for a way to display some python code > in html: with correct indentation, possibly syntax hiliting, dealing > correctly with multi-line comment, the usual way is to create your own web-framework If it is just "some" Python code and you have to do it "once", just look

Re: python html rendering

2006-10-03 Thread Fredrik Lundh
Pierre Imbaud wrote: > I rather thought of some module built on python parser, generating html > or xml, ideally customizable. see "colorizer.py" and "element_colorizer.py" in this directory: http://svn.effbot.python-hosting.com/stuff/sandbox/pythondoc -- http://mail.python.org/mailman

Re: python html rendering

2006-10-03 Thread Mark Peters
> Hi, Im looking for a way to display some python code > in html: with correct indentation, possibly syntax hiliting, dealing > correctly with multi-line comment, and... generating valid html code if > the python code itself deals with html (hence manipulates tag litterals. > Thanks for your help!

Re: python html rendering

2006-10-03 Thread Pierre Imbaud
Colin J. Williams wrote: > Josh Bloom wrote: > >>Hey Pierre, >> >>I'm using this plug-in for wordpress to display Python code. >>http://blog.igeek.info/wp-plugins/igsyntax-hiliter/ >>It works pretty well and can display a lot of other languages as well. >> >>-Josh >> >> >>On 10/3/06, *Pierre Imb

Re: python html rendering

2006-10-03 Thread Pierre Imbaud
hanumizzle wrote: > On 10/3/06, Colin J. Williams <[EMAIL PROTECTED]> wrote: > > >>Another approach is to use PyScripter (an editor and IDE). One can >>generate documentation and then save the generated html doc. >> >>Also PyDoc can be used directly. > > > And if you want to go the traditional

Re: python html rendering

2006-10-03 Thread hanumizzle
On 10/3/06, Colin J. Williams <[EMAIL PROTECTED]> wrote: > Another approach is to use PyScripter (an editor and IDE). One can > generate documentation and then save the generated html doc. > > Also PyDoc can be used directly. And if you want to go the traditional way, Emacs and Vim can both be us

Re: python html rendering

2006-10-03 Thread Colin J. Williams
Josh Bloom wrote: > Hey Pierre, > > I'm using this plug-in for wordpress to display Python code. > http://blog.igeek.info/wp-plugins/igsyntax-hiliter/ > It works pretty well and can display a lot of other languages as well. > > -Josh > > > On 10/3/06, *Pierre Imbaud* <[EMAIL PROTECTED]

Re: python html rendering

2006-10-03 Thread Josh Bloom
Hey Pierre,I'm using this plug-in for wordpress to display Python code. http://blog.igeek.info/wp-plugins/igsyntax-hiliter/It works pretty well and can display a lot of other languages as well. -JoshOn 10/3/06, Pierre Imbaud <[EMAIL PROTECTED]> wrote: Hi, Im looking for a way to display some pytho

Re: python - HTML processing - need tips

2006-08-08 Thread wipit
I figured it out... Just turned the POST request into a GET to see what was getting appended to the URL - thanks Gabe! Gabriel Genellina wrote: > At Monday 7/8/2006 20:58, wipit wrote: > > >I need to process a HTML form in python. I'm using urllib2 and > >HTMLParser to handle the html. There are s

Re: python - HTML processing - need tips

2006-08-07 Thread Gabriel Genellina
At Monday 7/8/2006 20:58, wipit wrote: I need to process a HTML form in python. I'm using urllib2 and HTMLParser to handle the html. There are several steps I need to take to get to the specific page on the relevant site the first of which is to log in with a username/password. The html code tha

Re: python html

2005-08-20 Thread DENG
try this http://miex.tigris.org i wrote this for checking bad html, correct them and optimize them -- http://mail.python.org/mailman/listinfo/python-list

Re: python html

2005-08-19 Thread Fuzzyman
I do exactly that in my Python CGI proxy (approx). I wrote a very simple parser called scraper.py that makes it easy. It won't choke on bad html either. http://www.voidspace.org.uk/python/recipes.shtml All the best, Fuzzyman http://www.voidspace.org.uk/python -- http://mail.python.org/mailman

Re: python html

2005-08-19 Thread Walter Dörwald
Steve Young wrote: > Hi, I am looking for something where I can go through > a html page and make change the url's for all the > links, images, href's, etc... easily. If anyone knows > of something, please let me know. Thanks. You might try XIST (http://www.livinglogic.de/Python/xist) Code might

Re: python html

2005-08-19 Thread [EMAIL PROTECTED]
Steve Young wrote: > Hi, I am looking for something where I can go through > a html page and make change the url's for all the > links, images, href's, etc... easily. If anyone knows > of something, please let me know. Thanks. BeautifulSoup or PyMeld Lorenzo -- http://mail.python.org/mailman/l

Re: python html

2005-08-18 Thread Mike Meyer
Steve Young <[EMAIL PROTECTED]> writes: > Hi, I am looking for something where I can go through > a html page and make change the url's for all the > links, images, href's, etc... easily. If anyone knows > of something, please let me know. Thanks. I've been doing a lot of that today. But the tool