Created
February 7, 2019 22:43
-
-
Save pierre-dickinson/499fd7ab3c3f601727e68094abf78820 to your computer and use it in GitHub Desktop.
Proxycrawl test
This file contains 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 | |
/** | |
* TEST proxycrawl | |
* @link https://proxycrawl.com/dashboard/docs | |
* ---------------------------------------------------------------------- | |
*/ | |
$token = '***********************'; | |
$url = urlencode('https://www.facebook.com/britneyspears'); | |
$ch = curl_init(); | |
$timeout = 60; | |
curl_setopt($ch, CURLOPT_URL, 'https://api.proxycrawl.com/?token='.$token.'&url=' . $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt ( $ch, CURLOPT_HEADER, false ); | |
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); | |
$response = curl_exec($ch); | |
curl_close($ch); | |
var_dump( $response ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment