by lutusp · 12y ago · 0 comments
This general advice should serve:
1. Get the page content the simplest way possible.
2. Use regular expressions to extract the desired content.
For both the above goals, and because so much revision is needed over time, I recommend Python.
Use regular expressions to extract the desired content.
You shouldn't use regex for parsing HTML. It's not reliable, nor suitable. Use a proper DOM parser. Read http://blog.codinghorror.com/parsing-html-the-cthulhu-way/