Web scraping lets you collect data from web pages across the internet. It's also called web crawling or web data extraction.
Selectors
Allows querying the DOM with CSS selectors (currently available: *, tagname, tagname#id, #id, tagname.classname, .classname, tagname.classname.classname2, .classname.classname2, tagname[attribute-selector], [attribute-selector], "div, p", div p, div > p, div + p and p ~ ul.)
Returns a list of document elements matching the selector.
Crawl::string('<!DOCTYPE html><html><body><h1>Hello</h1><h1>Kiaan</h1><div class="content">This is some text</div></body></html>');
$crawl =Crawl::get("h1");
Returns the item at the specified index.
Crawl::string('<!DOCTYPE html><html><body><h1>Hello</h1><h1>Kiaan</h1><div class="content">This is some text</div></body></html>');
echoCrawl::get("h1")->item(0)->text();
Returns the count of items.
Crawl::string('<!DOCTYPE html><html><body><h1>Hello</h1><h1>Kiaan</h1><div class="content">This is some text</div></body></html>');
echoCrawl::get("h1")->item(0)->count();
Attributes
Returns the value for the attribute name specified.