Skip to content

Instantly share code, notes, and snippets.

@erikzrekz
Forked from dannyid/googleSearchUrl.js
Created May 30, 2017 03:40
Show Gist options
  • Save erikzrekz/8a46df72fd1759fc95a754e30ad1fad1 to your computer and use it in GitHub Desktop.
Save erikzrekz/8a46df72fd1759fc95a754e30ad1fad1 to your computer and use it in GitHub Desktop.
What do these parameters even mean?
const language = `en`,
numResults = `100`, // 1 to 100
personalization = `0`, // Non-personalized
encoding = `UTF-8`,
verbatim = `li:1`, // No auto-correct and no location
ssl = `ssl`;
const googleSearchUrl = `https://www.google.com/search` +
`?q=${keyword}` +
`&hl=${language}` +
`&num=${numResults}` +
`&pws=${personalization}` +
`&ie=${encoding}` +
`&oe=${encoding}` +
`&tbs=${verbatim}` +
`&sa=N` + // I forget what this does
`&gws_rd=${ssl}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment