Sunday, September 29, 2013

Website Data scraping using PHP

Use the following script to retrieve the data.

<?
$siteurl = "sitename";
$ch = curl_init($siteurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
echo $curl_scraped_page;
?>

No comments:

Post a Comment