Re: [Tutor] HTML Parser woes

2014-03-04 Thread Mark Lawrence
On 04/03/2014 16:26, Alan Gauld wrote: My turn to ask a question. This has me pulling my hair out. Hopefully it's something obvious... I'm trying to pull some dates out of an HTML web page generated from an Excel spreadsheet. I've simplified things somewhat so the file(sample.htm) looks like:

Re: [Tutor] HTML Parser woes

2014-03-04 Thread Alan Gauld
On 04/03/14 18:19, spir wrote: As you can see I'm picking up the class attribute and its value but the conditional test for x165 is failing. It's "x L 65", not "x ONE 65". I'm curious what font you use such that you even _can_ confuse '1' and 'l' in reading (modern fonts are made to avoid su

Re: [Tutor] HTML Parser woes

2014-03-04 Thread spir
On 03/04/2014 05:38 PM, Alan Gauld wrote: On 04/03/14 16:31, Steven D'Aprano wrote: On Tue, Mar 04, 2014 at 04:26:01PM +, Alan Gauld wrote: My turn to ask a question. This has me pulling my hair out. Hopefully it's something obvious... [...] And the output looks like: start test Class Va

[Tutor] HTML Parser woes

2014-03-04 Thread Alan Gauld
My turn to ask a question. This has me pulling my hair out. Hopefully it's something obvious... I'm trying to pull some dates out of an HTML web page generated from an Excel spreadsheet. I've simplified things somewhat so the file(sample.htm) looks like: style='border-collapse: collapse;ta

Re: [Tutor] HTML Parser woes

2014-03-04 Thread Steven D'Aprano
On Tue, Mar 04, 2014 at 04:26:01PM +, Alan Gauld wrote: > My turn to ask a question. > This has me pulling my hair out. Hopefully it's something obvious... [...] > And the output looks like: > > start test > Class Value: 'xl66' > Class Value: 'xl66' > Class Value: 'xl66' > Class Value: 'xl

Re: [Tutor] HTML Parser woes

2014-03-04 Thread Alan Gauld
On 04/03/14 16:31, Steven D'Aprano wrote: On Tue, Mar 04, 2014 at 04:26:01PM +, Alan Gauld wrote: My turn to ask a question. This has me pulling my hair out. Hopefully it's something obvious... [...] And the output looks like: start test Class Value: 'xl66' Class Value: 'xl66' Class Val