I would like to get the list of top sites by category. Is there a way to do this using PHP/Curl? Or do I have to use their API? Seems like they are charging to use the cloud computing...I'm cheapo
You can scrape it pretty easy but scraping is unreliable here's a working example $html=file_get_contents('http://www.alexa.com/topsites/category/Top/Sports'); preg_match_all( '/<div class="desc-container">.*?<h2><a href=".*?">(.*?)<\/a><\/h2>/s', $html, $array, //array with sites PREG_SET_ORDER ); PHP: Then run a foreach or something on $array Cheers!
thanks! This works great. I wish I knew how to "spider" each category. I guess that is a whole 'nother big thing.