Php web page grabber/mining script required

Status
Not open for further replies.

DanTheMan

New Member
Hi,
I'm hosting a website on a linux box. I am looking for a php script that will check a webpage periodically and grab a page and make it available on my site. I game across a product called mine the web but this costs $150. I'm hoping for a free script. Any ideas? Thanks in advance.
 

ghost

New Member
Page Scrapper script

Can be Done a bit cheaper then 150
Post a url of the page you want to grab and your own display page.
Before you go down this road you should have permission from the owner of the content before useing it.
 

ghost

New Member
Content Scrapper Script

Here is a script I have used in the past


$source_file = file_get_contents('http://www.'); // content source.
$arr_remove = array("\r", "\n", "\t", "\s");
$stripped_file = str_replace($arr_remove, '', $source_file);
$strpos_start_section = strpos($stripped_file, 'start stripping here'); // Starting point.
$strpos_end_section = strpos($stripped_file, 'end stripping here', // Ending point.
$strpos_start_section) + 8;// no of charectors to display after the Ending point.
$len_section = $strpos_end_section - $strpos_start_section;
$section = substr($stripped_file, $strpos_start_section, $len_section);
$section = str_replace("width=\"100%\"", "width=\"50%\"", $section); // format for string replace if needed.
echo $section; //display the result
 
Status
Not open for further replies.
Top