The is an external site which has some links I want to extract. They are inside of divs with the class name "event-title". <div class="event-text"> Code (markup): How can I do that? What's the simplest way? Thanks!
If you want to use php for it then take a look at http://sourceforge.net/projects/simplehtmldom/?source=recommended They have simple to follow instructions on the site.
<?php $url = 'http://www.something.com/page.html'; $html = new SimpleXmlElement($url, null, true); $content = $html->xpath("//div[@id='event-text']"); ?> PHP: The contents of the div (the links i guess) will be stored in $content