1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google Trends Scraper Script

Discussion in 'Black Hat SEO' started by ExtremeSEO, Dec 15, 2009.

  1. ExtremeSEO

    ExtremeSEO BANNED BANNED

    Joined:
    Nov 11, 2009
    Messages:
    364
    Likes Received:
    394
    Google Trends Scrapper using Atom Feeds

    PHP:
    function get_trends() { 
        
    $url='http://www.google.com/trends/hottrends/atom/hourly'
        
    $feed = @simplexml_load_file($url,'SimpleXMLElement'LIBXML_NOCDATA); 
        
    $html=  $feed->entry->content
        
    preg_match_all('#([^<]+)#',$html[0],$match); 
        return 
    $match[2]; 
        }  
    Requirements:
    PHP 5.1.0 and Libxml 2.6.0+
     
    • Thanks Thanks x 4
  2. JohnKarr

    JohnKarr Junior Member

    Joined:
    Aug 12, 2009
    Messages:
    128
    Likes Received:
    22
    Occupation:
    Internet Marketer/Actor
    Location:
    Oregon
    IS this a plugin or something? Do you upload this to a server?