page scraping on php

if you are looking for page scraping help on php you can use below mentioned 2 function to fetch a web page then parse it as you wish. It’s using php curl extension and some string processing functions. Before start using it you need to enable the php_curl extension first then follow the below steps.

Getting a full webpage content:

< ?php
$pageUrl = '';
$pageHtmlContent = getPage($pageUrl);

Parsing a page html content:

< ?php
$subHtmlContent =  getValueByTagName($pageHtmlContent, '
', ''); ?>

Then you can now process the rest of content as you need. Above mentioned getPage and getValueByTagName functions are defined below you need to include them on you php page to use it.
Read More