[UPHPU] Web site scraping

Nathan Lane nathamberlane at gmail.com
Thu Sep 25 06:52:48 MDT 2008


I want to make what in effect is a website scraper using PHP, but it isn't
obvious how this would best be done. I've tried using DOMDocument and I'm
not sure if that's the best option or not. I'd really like to use something
where I could use XPath to get the elements out that I want. Recently I
wrote a similar program in C# that I call HttpAnalyzer. Could I just use
that with PHP (i.e. call it from PHP) to get what I'm looking for? Any
suggestions?

-- 
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com


More information about the UPHPU mailing list