PHP Classes

PHP Scrape Stack: Scrape web sites using scrapeStack API

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 191 This week: 1All time: 8,574 This week: 571Up
Version License PHP version Categories
scrapestack 1.0.0GNU General Publi...5HTTP, PHP 5, Web services
Description 

Author

This package can scrape web sites using scrapeStack API.

It can send HTTP requests to the scrapeStack API Web server to request to retrieve the contents of a Web page given its URL.

The class returns the remote Web server response details as an object that is assigned to the class response variable.

Scrape websites using the scrapeStack API service which rotates through proxies to protect your IP number from being blacklisted.

Innovation Award
PHP Programming Innovation award nominee
October 2019
Number 3
Some applications need to scrape information from other Web sites because they need that information and the sites do not provide an API or any other means to provide that information to other sites.

However, scraping Web sites may be difficult if the site server limits the number of requests that a site receives from a remote client computer.

This package provides a workaround that uses the Scrape API Web service. That service uses multiple proxy servers to perform multiple requests to pages of a another site.

Manuel Lemos
Picture of Dave Smith
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 51 packages by
Country: United States United States
Age: 58
All time rank: 618 in United States United States
Week rank: 20 Up2 in United States United States Up
Innovation award
Innovation award
Nominee: 32x

Winner: 7x

Example

<?php
/*
example usage
weatherStack ver 1.0

You must get an API key from https://weatherstack.com/product
and enter it in the weatherstack.class.php file
*/

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

//instantiate the class
include('scrapestack.class.php');
$scrape = new scrapeStack();

//set the url parameter for the website to be scraped
$scrape->setParam('url','http://www.ampapps.com');

//get the response
$scrape->getResponse();

//output the response
//if json is returned we had a problem
if( $scrape->jsonReturned ){
    echo
'<pre>';
   
var_dump($scrape->response);
    echo
'</pre>';
}else{
    echo
str_replace('<','&lt;',$scrape->response);
}

/*
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 https://scrapestack.com/product.
*/
?>


  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example Usage
Accessible without login Plain text file license.txt Lic. License
Plain text file scrapestack.class.php Class Main Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:191
This week:1
All time:8,574
This week:571Up