PHP Classes
elePHPant
Icontem

Page Ripper: Retrieve and alter remote Web pages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,270 All time: 2,848 This week: 1,033Up
Version License Categories  
pageripper 1.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
Age: 45
All time rank: 89427 in The Netherlands The Netherlands
Week rank: 859 Up24 in The Netherlands The Netherlands Up

Details provided by the author  
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,270All time:2,848
 This week:0This week:1,033Up