Last active
May 30, 2017 03:40
-
-
Save dannyid/22c2a774d255f8706fa3 to your computer and use it in GitHub Desktop.
What do these parameters even mean?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This is so great! Google searches ^o^