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

How to show search related data from Google using PHP?

Discussion in 'PHP & Perl' started by hameem, Jan 8, 2012.

  1. hameem

    hameem Elite Member

    Joined:
    Jul 21, 2011
    Messages:
    1,880
    Likes Received:
    985
    Location:
    221B Baker Street
    Anyone has any idea how do I extract some search related data, like which gender is searching a specific phrase more, which age group is searching that phrase etc, from google and show it using PHP?

    For example, if you type a phrase "football", it will tell you that 70% of male and 25% of female are searching that on google. That's not an exact example but yeah somewhere along that line.

    Thanks in advance.
     
  2. AdsMakesSense

    AdsMakesSense Regular Member

    Joined:
    Jun 23, 2011
    Messages:
    383
    Likes Received:
    25
    Download it using cURL and custom parse the data into variables?
     
  3. HungryMind

    HungryMind Newbie

    Joined:
    Jul 10, 2010
    Messages:
    9
    Likes Received:
    0
    You will have to create a little programme using CURL & Preg_Match.
    CURL will return content of the given URL.
    preg_match will return exact match from that returned content according to your preg_match pattern.
    For more guide.
    Read more about curl and preg_match.
    It's not a tough job. you can do it easily.