PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Dave Smith  >  PHP Scrape Stack  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: PHP Scrape Stack
Scrape web sites using scrapeStack API
Author: By
Last change:
Date: 2 years ago
Size: 957 bytes


Class file image Download
example usage
weatherStack ver 1.0

You must get an API key from
and enter it in the weatherstack.class.php file

//turning off low level notices
error_reporting(E_ALL ^ E_NOTICE);

//instantiate the class
$scrape = new scrapeStack();

//set the url parameter for the website to be scraped

//get the response

//output the response
//if json is returned we had a problem
if( $scrape->jsonReturned ){

Premium plans are available that allow advanced features like...
using SSL to get response
rendering javascript
proxy locations
premium addressed proxies
You can see what is available at

For more information send a message to info at phpclasses dot org.