Skip to content

Instantly share code, notes, and snippets.

@dannyid
Last active May 30, 2017 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dannyid/22c2a774d255f8706fa3 to your computer and use it in GitHub Desktop.
Save dannyid/22c2a774d255f8706fa3 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}`;
@erikzrekz
Copy link

This is so great! Google searches ^o^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment