PHP Classes
elePHPant
Icontem

Page Ripper: Retrieve and alter remote Web pages

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-10-24 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,284 All time: 2,887 This week: 894Up
Version License Categories
pageripper 1.0.0BSD LicenseHTML, Web services
Description Author

This class can be used to retrieve and alter remote Web pages.

It can retrieve HTML pages from remote sites and extract parts of the HTML data and optionally replace with new values.

Picture of ben
Name: ben <contact>
Classes: 3 packages by
Country: The Netherlands The Netherlands

Details
10-10-2006 9:48
© De Bron Digital Solution (http://www.dbds.nl)
Ben Heesen (b.heesen@dbds.nl)


README

Simple pagerip class in php. With cURL you pick up a specific part of a page. With extra possibilities like improve code beginning and ending,
replacement of pieces of code or picking up page content after submitting a form (like e.g. login form)



Simpele pagerip class in php. Met curl haal je een bepaald gedeelte van een pagina op.
Met extra mogelijkheden zoals het verbeteren van de code aan het begin en het eind, het vervangen van stukken code en het ophalen van een pagina na het versturen van een formulier (bv een inlog formulier).




SYNTAX:
#Simple
# require("pageripper.class.php");
# $pr = new PageRip();
# echo $pr->getChunk($url,$start,$end,$repair_start,$repair_end,$error_msg);

#entended
# require("pageripper.class.php");
# $pr = new PageRip();
# echo $pr->getChunkandReplace($url,$start,$end,$repair_start,$repair_end,$error_msg,$str_rep_1,$str_rep_1_with,$str_rep_2,$str_rep_2_with,$str_rep3,$str_rep_3_with);


# example
# require('class.pagerip.php');
# $pr = new PageRip();
# $url = 'http://www.phpclasses.org';
# $start = '';
# $end = 'Help FAQ';
# $error_msg = 'failed to rip page';
# $ripped_piece = $pr->getChunkandReplace($url,$start,$end,$repair_start,$repair_end,$error_msg);
# echo $ripped_piece;



For more information Visit
http://www.dbds.nl/blog/?cat=5

  Files folder image Files  
File Role Description
Plain text file pageripper.class.php Class pagerip with cURL
Accessible without login Plain text file README.TXT Doc. README

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,284
This week:0
All time:2,887
This week:894Up