This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $contents = file_get_contents("URL HERE"); | |
| $dom = new DOMDocument(); | |
| @$dom->loadHTML($contents); | |
| $xpath = new DOMXpath($dom); | |
| $element = trim((string) $xpath->query("XPATH FROM CHROME HERE")->item(0)->nodeValue); | |
| echo $element; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $curl = curl_init('http://testing-ground.scraping.pro/blocks'); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); | |
| $page = curl_exec($curl); | |
| if(curl_errno($curl)) // check for execution errors | |
| { | |
| echo 'Scraper error: ' . curl_error($curl); | |
| exit; | |
| } | |
| curl_close($curl); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var playerId = 'myEmbedTarget'; | |
| kWidget.embed({ | |
| 'targetId': playerId, | |
| 'wid': '_xxx', | |
| 'uiconf_id': 'xxxx', | |
| 'flashvars': { | |
| 'playlistAPI': { | |
| 'plugin': true, | |
| 'includeInLayout': false, | |
| 'autoPlay': true, |
NewerOlder