Re: HTML to dictionary

2007-02-27 Thread Tina I
Thanks people, I learned a lot!! :) I went for Herbert's solution in my application but I explored, and learned from, all of them. Tina -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML to dictionary

2007-02-27 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, Tina I <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: > > > > METAR: > > > > ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG > > > > > > short-TAF: > > > > ENBR 270800Z 270918 VRB

Re: HTML to dictionary

2007-02-27 Thread Paul Boddie
On 27 Feb, 11:08, Tina I <[EMAIL PROTECTED]> wrote: > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> >> >> short-TAF: >> >> ENBR 270800Z 270918 VRB05KT FEW020 SCT040 >> >> >> long-

Re: HTML to dictionary

2007-02-27 Thread WEINHANDL Herbert
Tina I schrieb: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> ... BeautifulSoup is really fun to work with ;-) > I have played around with BeautifulSoup but I'm stuck at

Re: HTML to dictionary

2007-02-27 Thread bearophileHUGS
Tina I: > I have a small, probably trivial even, problem. I have the following HTML: This is a little data munging problem. If it's a one-shot problem, then you can just load it with a browser, copy and paste it as text, and then process the lines of the text in a simple way (splitting lines accor

Re: HTML to dictionary

2007-02-27 Thread Tina I
Tina I wrote: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> >> >> short-TAF: >> >> ENBR 270800Z 270918 VRB05KT FEW020 SCT040 >> >> >> long-TAF: >> >> ENBR 27121

HTML to dictionary

2007-02-27 Thread Tina I
Hi everyone, I have a small, probably trivial even, problem. I have the following HTML: > > METAR: > > ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG > > > short-TAF: > > ENBR 270800Z 270918 VRB05KT FEW020 SCT040 > > > long-TAF: > > ENBR 271212 VRB05KT FEW020 BKN030 TEMPO