Posts tagged: php

php

General-purpose server side scripting language that is especially suited for Web development (and Wordpress).

google suggest scraper (php & simplexml)

Today’s goal is a basic php Google Suggest scraper because I wanted traffic data and keywords for free. Before we start : google scraping is bad ! Good People use the Google Adwords API : 25 cents for 1000 units, … Continue reading

Posted in google, seo tips and tricks | Tagged , , , , | 4 Comments

bing api with php and simplexml

About scraping results off of Bing : Bing use a set of about eight cookies. You can grab 200 results with php curl, as 20 pages of 10, but after the first 200 the Bing server checks for the cookie … Continue reading

Posted in php, seo | Tagged , , | 1 Comment

bing

for completeness : php bing serp scraping : $query = 'serp'; $page = 1; $start = ($page-1)*10; $url = 'http://www.bing.com/search?q='.urlencode($query)."&first=".($start+1);   $curl_handle = curl_init(); curl_setopt($curl_handle,CURLOPT_URL, $url); curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); $return = curl_exec($curl_handle); curl_close($curl_handle);   $parts = split('<h3>', $return);   … Continue reading

Posted in php, serp | Tagged , | 1 Comment