Advertisement
hoang239

Test proxycrawl

Sep 18th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. require __DIR__ . '/vendor/proxycrawl/proxycrawl/proxycrawl-api.php';
  4.  
  5. $api = new ProxyCrawlAPI(['token' => '6pDBU4aX5S8EawOUgNMYbA']);
  6.  
  7. $response = $api->get('https://www.facebook.com/britneyspears');
  8. if ($response->statusCode === 200) {
  9.     echo $response->body;
  10.     echo $response->statusCode;
  11.     ​echo $response->headers->original_status;
  12.     echo $response->headers->pc_status;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement