Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Kent Johnson
Alan Gauld wrote: > "Alan Gauld" <[EMAIL PROTECTED]> wrote > >> it doesn't throw errors when you get an http error back, > > Oops, confusing myself here. > Its urllib2 that throws errors and nothing to do with HTMLParser. > The advantage of HTMLParser is the lack of a need for a > formatter and

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote > it doesn't throw errors when you get an http error back, Oops, confusing myself here. Its urllib2 that throws errors and nothing to do with HTMLParser. The advantage of HTMLParser is the lack of a need for a formatter and writer object. Sorry for any co

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote in > FWIW most real-world HTML parsers (including Beautiful Soup) seem to > be > based directly on SMTPlib, not htmllib or HTMLParser. Yes, I noticed that, although htmllib is itself based on sgmllib... And it has a better event based parsing model but un

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Alan Gauld
"Kent Johnson" <[EMAIL PROTECTED]> wrote > On a lawyerly note, I think your Google example violates Google's > terms > of service which prohibits any automated access. > http://www.google.com/accounts/TOS Thanks for pointing that out Kent. It probably explains why they send me a Restricted HTTP

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Kent Johnson
Tim Golden wrote: > Kent Johnson wrote: >> FWIW most real-world HTML parsers (including Beautiful Soup) seem to >> be based directly on SMTPlib, not htmllib or HTMLParser. > > I'm assuming you mean sgmllib here? :-) yes, I mean sgmllib.SGMLParser Kent ___

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Tim Golden
Kent Johnson wrote: > FWIW most real-world HTML parsers (including Beautiful Soup) seem to be > based directly on SMTPlib, not htmllib or HTMLParser. I'm assuming you mean sgmllib here? TJG ___ Tutor maillist - Tutor@python.org http://mail.python.org

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Kent Johnson
Alan Gauld wrote: > > "Switanek, Nick" <[EMAIL PROTECTED]> wrote > >> Please let us know when you have a draft of your tutorial on Beautiful >> Soup and such. I'd be eager to have a look! > > Here is the current draft, the concepts bits are all there (nothing > on Beautiful Soup as yet) but the

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Alan Gauld
"Switanek, Nick" <[EMAIL PROTECTED]> wrote Please let us know when you have a draft of your tutorial on Beautiful Soup and such. I'd be eager to have a look! Here is the current draft, the concepts bits are all there (nothing on Beautiful Soup as yet) but the example is giving me some heada

Re: [Tutor] screen scraping web-based email (Alan Gauld)

2007-04-19 Thread Switanek, Nick
Alan, Please let us know when you have a draft of your tutorial on Beautiful Soup and such. I'd be eager to have a look! Thanks, Nick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] screen scraping web-based email

2007-04-18 Thread Alan Gauld
"R. Alan Monroe" <[EMAIL PROTECTED]> wrote > You can drive the fat client via COM if you install the Win32 > extensions for python. > >> (I know I could do it with a torturous combination of applescript >> and > > Except judging by this, you're on a MAC... so maybe not. Still, > working WITH the

Re: [Tutor] screen scraping web-based email

2007-04-18 Thread R. Alan Monroe
> I'm starting graduate school (econ!) in the Fall; the school I'll be > attending uses Lotus for email You can drive the fat client via COM if you install the Win32 extensions for python. > (I know I could do it with a torturous combination of applescript and Except judging by this, you're on

Re: [Tutor] screen scraping web-based email

2007-04-18 Thread Alan Gauld
"James Cunningham" <[EMAIL PROTECTED]> wrote > I'd like to write a daemon that logs into the text-based web client > every so often, scrapes for new email, and uses smtplib to send that > email to another email address. Kent has pointed you at useful add-on modules. Using the standard library co

Re: [Tutor] screen scraping web-based email

2007-04-18 Thread James Cunningham
On Wed, 18 Apr 2007 12:15:26 -0400, Kent Johnson wrote: > James Cunningham wrote: > >> I'd like to write a daemon that logs into the text-based web client >> every so often, scrapes for new email, and uses smtplib to send that >> email to another email address. But I really don't know how I'd go >

Re: [Tutor] screen scraping web-based email

2007-04-18 Thread Kent Johnson
James Cunningham wrote: > I'd like to write a daemon that logs into the text-based web client > every so often, scrapes for new email, and uses smtplib to send that > email to another email address. But I really don't know how I'd go > about logging in and staying logged in without a browser. > >

[Tutor] screen scraping web-based email

2007-04-18 Thread James Cunningham
Hello. I've been playing with Python for a while, and even have some small scripts in my employ, but I have a bit of a problem and I'm not sure how to proceed. I'm starting graduate school (econ!) in the Fall; the school I'll be attending uses Lotus for email and allows neither forwarding nor POP/