I am using this very basic form of the dom scraper to scrape image urls from tumblr webpage, it kinda does what i am looking for but i am facing two issues.
1. Its scraping all links, i want it to scrape only links that contain "media.tumblr.com"
2. I want to scrape the next pages too ex.
Can Someone please help me with this? i am really having hard time to figure this out :( i really suck at php :P
<?php include_once('../../simple_html_dom.php'); $html = file_get_html('http://beneathmyveins.tumblr.com/mobile'); foreach($html->find('a') as $element) echo $element->href . '<br>'; ?>
Thanks in advance. Any help would be greatly appreciated.