-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(READ THIS FIRST) - Correct Way to get Google Search Results #63
Comments
Open
Thank you 👍 |
i don't agree. Using the API provides a bias about your API key in the results that you receive. Yes it is faster, but is isn't the same results... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The proper way to get Google results is to use an API key. With this module, you'll quickly run into the Google captcha issue (Google will detect an unusual amount of traffic from an IP), without using an API key.
You want to query Google directly using an API key...
https://www.googleapis.com/customsearch/v1?key=<YOUR_GOOGLE_SEARCH_API_KEY>&q=Node JS
Get your Google Search API Key here: https://developers.google.com/custom-search/json-api/v1/overview
This is wayyyy faster too, you get raw JSON results directly from their server in one HTTP call. No time wasted on parsing HTML and if Google changes their HTML structure you are not dead in the water. Also, one less NPM repo in your codebase, better security.
The text was updated successfully, but these errors were encountered: