project-salsa / discord-bot

Discord bot in progress
2 stars 0 forks source link

A "Search" Command #2

Open renodubois opened 6 years ago

renodubois commented 6 years ago

Similar to Dyno's ?g command, but probably using something like DuckDuckGo so we don't get yelled at for trying to circumvent Google ads.

Usage:

.s nice meme
renodubois commented 6 years ago

DuckDuckGo doesn't have an API support, so our options are either to scrape the website for results (see: Nadeko's implementation) or use a free search API.

CastroDan commented 6 years ago

To clarify the DDG situation, it does have an API but only provides instant results for a select number of sites (wikipedia, github, etc.). Because of this, we won't be able to scrape DDG either, since the actual results will be missing from the html DDG sends back as a response.

Also, I don't know if it's just me, but the SeekStorm website seems to be completely unresponsive

CastroDan commented 6 years ago

Scraping the results from a google response also apparently violates their Terms of Service, so we definitely can't do that either.