Skip to content
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

feelinglucky broken (affects !mdn and !g) #55

Open
brigand opened this issue May 8, 2016 · 6 comments
Open

feelinglucky broken (affects !mdn and !g) #55

brigand opened this issue May 8, 2016 · 6 comments

Comments

@brigand
Copy link
Contributor

brigand commented May 8, 2016

Here's the error:

TypeError: Cannot read property 'results' of null
    at IncomingMessage.<anonymous> (/home/node/lib/feelinglucky/index.js:19:44)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)
@brigand
Copy link
Contributor Author

brigand commented May 8, 2016

Here's api response:

{"responseData": null, "responseDetails": "The Google Web Search API is no longer available. Please migrate to the Google Custom Search API (https://developers.google.com/custom-search/)", "responseStatus": 403}

@eligrey
Copy link
Member

eligrey commented May 8, 2016

https://news.ycombinator.com/item?id=11625633 😦

We either need to reverse engineer the google.com internal JS API (used by https://www.google.com/#q=test) or resort to scraping HTML. Also, automated use will probably trigger CAPTCHAs as explained at https://news.ycombinator.com/item?id=11625927.

@brigand
Copy link
Contributor Author

brigand commented May 8, 2016

Maybe useful https://support.google.com/customsearch/answer/2631040?hl=en

For web scraping, there's 'google' on npm.

@yorickvP
Copy link
Member

yorickvP commented May 8, 2016

I read some API docs, they have a JSON API

brigand added a commit to brigand/oftn-bot that referenced this issue May 9, 2016
@brigand brigand mentioned this issue May 9, 2016
@yorickvP
Copy link
Member

MDN could maybe be fixed using https://developer.mozilla.org/en-US/docs/MDN/Contribute/Tools/Search

@hagb4rd
Copy link

hagb4rd commented Aug 16, 2016

Feeling Ducky!
😁

Created a replacement. Works the same Googles Lucky Search used to.

Greetz!

Pull Request here:

#60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants