4 ms·
I built a simple node JS server to use as my default search engine. What you describe could be a 2-line change to my code. My motivation was using Google "I'm
by jchook 6y ago
I built a simple node JS server to use as my default search engine. What you describe could be a 2-line change to my code.
My motivation was using Google "I'm Feeling Lucky" without JS. The node app detects the "!lucky" bang, downloads the search results, finds the first link, and redirects to it.
Let me know if it interests you.
- glouwbug 6y agoI'm not perfectly understanding of such legalities, so correct me if I am wrong, but wouldn't this be infringing on scraping territory?
- jchook 6y agoScraping may violate of Google's own acceptable use policy, but it's not illegal.
- dylan604 6y agoSure, it's only okay for Google to scrape all websites, but not you scraping it. Got it.
- samatman 6y agoGoogle is quite scrupulous about robots.txt. There's plenty of hypocrisy at that company but this doesn't strike me as a case of it.
- decasteve 6y agoScrupulous? Nobody is going to disallow / on Google's user-agent. I'd suggest respecting Google's robots.txt as much as Google respects our DNT settings.
- ebfe1 6y agoHi jchook, i would love to play with it and might try to port it to cloudflare worker for personal use :) I was thinking of exact same thing before bed last night when someone at work commented on how much revenue from Ad Google loses from "Im feeling lucky" feature which bypass all Ads
- forgotmypw17 6y agoI too use a custom "search engine", because I want to use a different provider depending on language of query.