-13 karma · joined Oct 22, 2009 (17y ago) · 11 submissions
comment 17y ago · link · parent
One doesn't need to guess at all possible combinations of badness using a regex, you just need to find the data you need and adjust the regex to the badness of that particular page.
Do you know anyone that mines for data out of HTML "in the wild"? I didn't think so.
comment 17y ago · link · parent
I think HTML parsers have their place, but I don't understand why people think regular expressions are not a valid tool for getting data out of HTML. HTML parsers are only an appropriate solution if the HTML is valid, well structured and mostly semantic.
If you are dealing with invalid, code generated via Frontpage 2000 by some bureaucrat with little HTML knowledge, regular expressions will almost always be a better option.
comment 17y ago · link · parent
Most people are ignorant of how bad most of the HTML on the web is, it is simply unparseable.
comment 17y ago · link · parent
Anyone who has had to data mine HTML on a regular basis knows regular expressions are the only way to go because most web pages are clusterfucks of invalid, font-tag laden, id-less, ancient piles of shit.
Any XML parser I threw at the sites I was mining ran away crying with it's pants soaked with urine. So climb down your ivory tower, because XML parsers may be the "correct" way to get data out of HTML, but they are near worthless for most situations.
comment 17y ago · link · parent
Plus the city council is beyond dysfunctional... http://www.youtube.com/watch?v=_TvgtGlcdTE&eurl=http://c...
comment 17y ago · link · parent
"HTML is a mark-up language for documents. Its simplicity has enabled the spread of the web. In addition it provided a means for some semantic marking BLAH BLAH BLAH."
You are repeating what he says in his blog. Maybe you read the wrong blog?
"CSS was the answer to presentational issues."
Yes, but it's not a good answer. It is possible to criticize something not as reflection of a person's own deficiencies, but because it is works poorly.
"Most important this separation enables easier indexing of web pages which is next to impossible to index with graphical based systems."
He never said the separation of content and layout is bad. He said they way that it is implemented is "POOP" Any sane person is for the seperation of content and layout.