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

Google Auto Suggest Scraper

Discussion in 'Black Hat SEO Tools' started by Asif WILSON Khan, Feb 25, 2017.

  1. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Jr. VIP

    Joined:
    Nov 10, 2012
    Messages:
    11,444
    Likes Received:
    32,348
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    [​IMG]


    PHP:
    # -*- coding: utf-8 -*-
    import requests
    import json

    # here you include your main terms, this can be as many as you like
    terms = ['wine']

    # these are just 'variations' which are appended to the start of your 'terms'
    variations = ['what * ''who * ''how * ''does * ''why * ''can * ''where * ''when * ']

    for 
    term in terms:
        for 
    variant in variations:
            
    # request api
            
    r=requests.get('http://suggestqueries.google.com/complete/search?client=firefox&q={}{}'.format(variantterm))
            
    # grab returned text loading as json
            
    parsed_json json.loads(r.text)
            
    # print each parsed item
            
    print parsed_json[0]
            for 
    i in parsed_json[1]:
                print 
    '- 'i.encode('utf-8''ignore')
    Read more here: http://www.bronco.co.uk/our-ideas/content-topics/
     
    • Thanks Thanks x 6
  2. Hawkster

    Hawkster Jr. VIP Jr. VIP

    Joined:
    Jun 22, 2013
    Messages:
    3,424
    Likes Received:
    3,615
    Gender:
    Male
    Occupation:
    Listen to everyone - Follow no-one
    Location:
    UK
    Home Page:
    Handy that matey. Cheers
     
    • Thanks Thanks x 1
  3. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,350
    Likes Received:
    415
    Gender:
    Male
    Location:
    Portugal
    For those who don't have experience with programming, this is made using python and you can read online how to install it and use it. If I'm not mistaken this script was made using python 2.7 but I could be wrong.
     
    • Thanks Thanks x 1
  4. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Jr. VIP

    Joined:
    Nov 10, 2012
    Messages:
    11,444
    Likes Received:
    32,348
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    Here are the complete instructions:

    [​IMG]

    There are also API’s for Bing and Amazon
     
    • Thanks Thanks x 2