Monthly Archives: December 2011

Finally, A Great HTML Parser for PHP

I’m blown away by theĀ PHP Simple HTML DOM Parser. It’s like Beautiful Soup, the Python HTML/XML parser, but for PHP and has some nice jQuery-like syntax. It also seems just incredibly fast, but maybe that’s also because I’m better at PHP than Python, no longer using any templating engine (was using Cheetah), and it also could be my new blazingly fast web host. I highly, highly recommend this tool if you need to do any web-scraping type stuff.

I redid the entire TWOP One-Pager using this (which also reminded of how badly this site needs a redesign). For more on that, check out this post. I added in some jQuery/ajax goodness this time around to make the page feel more responsive.