Parsing HTML Using Regular Expressions
stackoverflow.com
Parsing HTML Using Regular Expressions
1–10 of 18 posts
Re: Parsing HTML Using Regular Expressions
#2Re: Parsing HTML Using Regular Expressions
#3Re: Parsing HTML Using Regular Expressions
#4you know when you first read that you think - damn straight you can't parse html with regex, but as it goes on the idea gets strangely enticing. I mean maybe, with the correct rituals, and a gun and a willingness to fight with ancient evils you could maybe parse some html with regex. A sort of Lovecraft/Action flick.
Re: Parsing HTML Using Regular Expressions
#5you know when you first read that you think - damn straight you can't parse html with regex, but as it goes on the idea gets strangely enticing. I mean maybe, with the correct rituals, and a gun and a willingness to fight with ancient evils you could maybe parse some html with regex. A sort of Lovecraft/Action flick.
Using regex in python to scrape some data from a website works just fine for me... shrugs
Re: Parsing HTML Using Regular Expressions
#6you know when you first read that you think - damn straight you can't parse html with regex, but as it goes on the idea gets strangely enticing. I mean maybe, with the correct rituals, and a gun and a willingness to fight with ancient evils you could maybe parse some html with regex. A sort of Lovecraft/Action flick.
Using regex in python to scrape some data from a website works just fine for me... shrugs
Regex is fine for grabbing something in a page that you have looked at yourself.
Parsing millions of pages you don't have this option, you need something robust, a tool that is flexible, that doesn't barf out too many errors, that is quick.
Re: Parsing HTML Using Regular Expressions
#7you know when you first read that you think - damn straight you can't parse html with regex, but as it goes on the idea gets strangely enticing. I mean maybe, with the correct rituals, and a gun and a willingness to fight with ancient evils you could maybe parse some html with regex. A sort of Lovecraft/Action flick.
Using regex in python to scrape some data from a website works just fine for me... shrugs
Re: Parsing HTML Using Regular Expressions
#8It really falls under the old joke "you have a problem and you decide to solve it with regex, now you have two problems". HTML is very gnarly, and regex is very gnarly. Doesn't mean you can't get shit done if you're aware of the pitfalls.
Re: Parsing HTML Using Regular Expressions
#9Re: Parsing HTML Using Regular Expressions
#10you know when you first read that you think - damn straight you can't parse html with regex, but as it goes on the idea gets strangely enticing. I mean maybe, with the correct rituals, and a gun and a willingness to fight with ancient evils you could maybe parse some html with regex. A sort of Lovecraft/Action flick.
Using regex in python to scrape some data from a website works just fine for me... shrugs