Google Suggestion Scraper [FREE]

Joined
Feb 24, 2021
Messages
13
Likes
27
Degree
0
Would you like to have all Google Suggestions for specific terms?

I've built a script that everyone can use for free. There are multiple uses, some of them:
  • Optimize content;
  • Keyword researching.
You'll just need to install nodejs in your and the 2 libs used. After install nodejs, just run:

Code:
npm install request iconv-lite

After that, save the following code as sug.js from a text editor.

JavaScript:
// Google suggestion extractor
const request = require('request')
const iconv  = require('iconv-lite')

ra()


async function ra(){

    let kw = process.argv[2]

    let alfa = 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z'

    let r = []

    let k = await getSugg(kw)

    k.forEach(function(name){
        r.push(name)
      })

    r.push('-----')

    for(let each of alfa.split(',')){

        let y = await getSugg(kw+'+'+each)

        y.forEach(function(name){
            r.push(name)
          })

    }


    for(let each of r){
        console.log(each)
    }

    
}

async function getSugg(kw){

    return new Promise(function(resolve, reject) {

    var requestOptions  = {encoding: null, method: "GET", uri: "https://www.google.com/complete/search?q="+kw+"&cp=3&client=psy-ab&xssi=t&gs_ri=gws-wiz&hl=en-US&authuser=0"};

    let result = []

    request(requestOptions, function(error, response, body) {

        var utf8String = iconv.decode(Buffer.from(body), "ISO-8859-1");

        let js = JSON.parse(utf8String.replace(")]}'\n", ''))

        for(let each of js[0]){
            result.push(each[0].replace(/<(.|\n)*?>/g, ''))
        }


        resolve(result)

    })

    

    })
}

Then run: node sug.js "your main keyword here"

The script will print all google suggestion from A to Z.

Hope it helps,
Kira
 
For non tech people, you will run those commands on mac/linux/windows terminal.

You have to be inside the folder where you saved the sug.js file wti the terminal.

If you run:

Code:
node sug.js "best notebook for"

You'll get:

Code:
best notebook for developers
best notebook for linux
best notebook for hackintosh
best notebook for data science
best notebook for work
best notebook for architects
best notebook for work 2020
best notebook for students
best notebook for bullet journal
best notebook for journaling
-----
best notebook for architects
best notebook for artists
best notebook for android
best notebook for art journaling
best notebook for acrylic paint
best notebook for authors
best notebook for anatomy
best notebook for autocad
best notebook for apple pencil
best notebook for accounting
best notebook for bullet journal
best notebook for business
best notebook for bible study
best notebook for business notes
best notebook for bullet journal reddit
best notebook for business planning
best notebook for budgeting
best notebook for biology
best notebook for brush pens
best notebook for bullet journal uk
best notebook for college
best notebook for college students
best notebook for coding
best notebook for calligraphy
best notebook for commonplace book
best notebook for calculus
best notebook for clinical rotations
best notebook for college reddit
best notebook for chemistry notes
best notebook for copic markers
best notebook for developers
best notebook for data science
best notebook for drawing
best notebook for designers
best notebook for diary
best notebook for daily journal
best notebook for d&amp;d
best notebook for daily tasks
best notebook for doctors
best notebook for digital art
best notebook for engineers
best notebook for engineering students
best notebook for executives
best notebook for elderly
best notebook for entrepreneurs
best notebook for everyday use
best notebook for excel
best notebook for evernote
best notebook for editing photos
best notebook for email and internet
best notebook for fountain pens
best notebook for fountain pens reddit
best notebook for field work
best notebook for fountain pen writing
best notebook for finance
best notebook for fountain pen uk
best notebook for forex trading
best notebook for fountain pen india
best notebook for freebsd
best notebook for fortnite
best notebook for graphic design
best notebook for gaming
best notebook for grad school
best notebook for gel pens
best notebook for gaming 2020
best notebook for gift
best notebook for game development
best notebook for goal setting
best notebook for grimoire
best notebook for gym
best notebook for hackintosh
best notebook for home use
best notebook for high school students
best notebook for handwriting
best notebook for hacking
best notebook for high school
best notebook for home office
best notebook for home
best notebook for hackers
best notebook for hand lettering
best notebook for ipad
best notebook for ink pens
best notebook for ipad pencil
best notebook for ipad pro
best notebook for internet browsing
best notebook for ideas
best notebook for iphone
best notebook for illustrators
best notebook for ipad pro pencil
best notebook for it professionals
best notebook for journaling
best notebook for journaling reddit
best notebook for journal writing
best notebook for japanese
best notebook for julia
best notebook for bullet journal
best browser for jupyter notebook
best ide for jupyter notebook
best size notebook for bullet journal
best notebook for art journaling
best notebook for kali linux
best notebook for korean writing
best notebook for kindergarten
best notebook for kitchen
best notebook for kali
best notebook for karaoke
best notebook for practicing kanji
what kind of notebook is best for bullet journal
what is the best practices for keeping a notebook in class
best notebook for linux
best notebook for lefties
best notebook for language learning
best notebook for lists
best notebook for left handers
best notebook for law school
best notebook for lawyers
best notebook for lectures
best notebook for learning japanese
best notebook for linux 2021
best notebook for math
best notebook for morning pages
best notebook for meeting notes
best notebook for medical students
best notebook for music production
best notebook for multiple projects
best notebook for mac
best notebook for math notes
best notebook for machine learning
best notebook for markers
best notebook for note taking
best notebook for notes
best notebook for note taking reddit
best notebook for nurses
best notebook for nursing students
best notebook for new job
best notebook for novel writing
best notebook for note taking philippines
best notebook for notes india
best notebook for netflix
best notebook for office work
best notebook for organization
best notebook for online classes
best notebook for organic chemistry
best notebook for office
best notebook for onenote
best notebook for ochem
best notebook for organization at work
best notebook for office use
best notebook for outdoor use
best notebook for programming
best notebook for photo editing
best notebook for python
best notebook for project management
best notebook for professionals
best notebook for passwords
best notebook for programming 2020
best notebook for practicing kanji
best notebook for photoshop
best notebook for planning
best notebook for quickbooks
best notebook for recipes
best notebook for rotations
best notebook for real estate agents
best notebook for reading books
best notebook for research
best notebook for revision
best notebook for residency
best notebook for r
best notebook for rendering
best notebook for realtors
best notebook for students
best notebook for school
best notebook for studying
best notebook for students 2020
best notebook for sketching
best notebook for scrapbooking
best notebook for seniors
best notebook for songwriting
best notebook for studying japanese
best notebook for school work
best notebook for taking notes
best notebook for to do list
best notebook for teachers
best notebook for therapy notes
best notebook for trading
best notebook for the money
best notebook for task management
best notebook for tracking workouts
best notebook for travel
best notebook for therapists
best notebook for university
best notebook for ubuntu
best notebook for uni students
best notebook for upsc
best notebook for university students
best notebook for under 300
best notebook for under $500
best notebook for uni
best notebook for upgrade
best notebook for ubuntu 2019
best notebook for video editing
best notebook for video conferencing
best notebook for vocabulary
best notebook for virtualization
best notebook for video rendering
best notebook for video calling
best notebook for video editing 2018
best notebook for vr
best notebook for visual studio
best notebook for video editor
best notebook for work
best notebook for work 2020
best notebook for writers
best notebook for writing
best notebook for writing a novel
best notebook for watercolor
best notebook for writing japanese
best notebook for writers reddit
best notebook for work reddit
best notebook for web development
best notebook for 10 year old
best notebook for 8 year old
what to write in a notebook for your best friend
best gaming notebook for your money
best-thinkpad-notebook-for-you
best notebook for zoom
 
Just getting error messages...

Code:
SyntaxError: Invalid or unexpected token
    at wrapSafe (internal/modules/cjs/loader.js:979:16)
    at Module._compile (internal/modules/cjs/loader.js:1027:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47
 
It could be a enconding problem.

If you created your sug.js file through a command line, try to create another file by clicking the NEW FILE button on whatever IDE you are using, and copy paste that code inside of it, then try to run the new file (node NEWFILE.js), because that could be related to different encoding problem.

Let me know how it goes.

Anyone else have used? Send me feedback please.
 
Back