Stripping scripts from HTML with regular expressions

2008-04-09 Thread Michel Bouwmans
Hey everyone, I'm trying to strip all script-blocks from a HTML-file using regex. I tried the following in Python: testfile = open('testfile') testhtml = testfile.read() regex = re.compile(']*>(.*?)', re.DOTALL) result = regex.sub('', blaat) print result This strips far more away then just the

RE: Stripping scripts from HTML with regular expressions

2008-04-09 Thread Michel Bouwmans
Reedick, Andrew wrote: > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans >> Sent: Wednesday, April 09, 2008 3:38 PM >> To: python-list@python.org >> Subject: Stripping

Re: How is GUI programming in Python?

2008-04-10 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Rubin wrote: > Chris Stewart <[EMAIL PROTECTED]> writes: >> I've always had an interest in Python and would like to dabble in it >> further. I've worked on a few very small command line programs but >> nothing of any complexity. I'd like to bui

RE: Stripping scripts from HTML with regular expressions

2008-04-10 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reedick, Andrew wrote: >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans >> Sent: Wednesday, April 09, 2008 5:44 PM >> To: python-list@python

Re: How is GUI programming in Python?

2008-04-10 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Driscoll wrote: > On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> >> Paul Rubin wrote: >> > Chris Stewart <[EM

Re: How is GUI programming in Python?

2008-04-11 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Genellina wrote: > Another annoying thing with the Qt license is that you have to choose it > at the very start of the project. You cannot develop something using the > open source license and later decide to switch to the commercial licence >

Re: How is GUI programming in Python?

2008-04-11 Thread Michel Bouwmans
Steve Holden wrote: > Michel Bouwmans wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mike Driscoll wrote: >> >>> On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: >>>> -BEGIN PGP SIGNED MESSA

Re: How is GUI programming in Python?

2008-04-11 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rune Strand wrote: > On Apr 10, 3:54 am, Chris Stewart <[EMAIL PROTECTED]> wrote: > ... >> >> Next, what would you say is the best framework I should look into? >> I'm curious to hear opinions on that. > > GUI-programming in Python is a neanderthal e

Re: How is GUI programming in Python?

2008-04-12 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gabriel Genellina wrote: > En Fri, 11 Apr 2008 11:31:42 -0300, Michel Bouwmans > <[EMAIL PROTECTED]> escribió: >> Gabriel Genellina wrote: > >>> Another annoying thing with the Qt license is that you have to choose i

Re: How is GUI programming in Python?

2008-04-13 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Torsten Bronger wrote: > Hallöchen! Und auch ein hallo, aus den Niederlanden! :P > Michel Bouwmans writes: > >> Gabriel Genellina wrote: >> >>> Michel Bouwmans <[EMAIL PROTECTED]> escribió: >>> >

urllib2 Basic authentication, what am I doing wrong?

2008-04-13 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey everybody, I'm having a little problem with urllib2 and Basic HTTP authentication. I have the following code: auth = urllib2.HTTPPasswordMgrWithDefaultRealm() auth.add_password(None, 'https://webmail.osg-erasmus.nl/oneNet/NetStorage/', user, pas

Re: urllib2 Basic authentication, what am I doing wrong?

2008-04-13 Thread Michel Bouwmans
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Max Erickson wrote: > On Apr 13, 2:11 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote: > >> Using this nice class (adapted to urllib2) as a basehandler I see that no >> Authentication-header is being send >> out:ht