Scraper Helper
Function Reference [+]
scrape_html('$url', [$post=array()], [$opts=array()])
Uses CURL to scrape the contents of a URL.
Returns
string
Parameters
(string) $url URL of page to scrape contents (array) $post POST parameters to pass along in the request (array) $opts An additional set of CURL options
scrape_dom('$url', ['$xpath_query'=NULL])
Returns a DOM object of a page or a result object if an XPath query was passed.
Returns
object
Parameters
(string) $url URL of page to scrape contents (string) $xpath_query an XPath query to pass
is_valid_page('$url')
Uses CURL to determine if a page exists or not.
Returns
boolean
Parameters
(string) $url URL of page to check