SpectrixDev / Spectrum

A Discord bot with tons of features, written in Python, made for fun.
GNU General Public License v3.0
22 stars 11 forks source link

Make a custom $search command #14

Open SuperMarioLord64 opened 6 years ago

SuperMarioLord64 commented 6 years ago

Syntax: $search (search engine) (term)

SpectrixDev commented 6 years ago

What will it search with? Google?

brahmnw commented 6 years ago

google has an api, im pretty sure yahoo does too. i dont see why you can't do that.

SpectrixDev commented 6 years ago

I can do that, it's just that he was very unclear

SuperMarioLord64 commented 6 years ago

I used angle brackets which happened to be HTML format and git didn't like it.

SpectrixDev commented 6 years ago

So it will be multiple search engines? Ok, that probably isn't that hard...

SuperMarioLord64 commented 6 years ago

It could work with Auxiliatrium. How do you pronounce that, lol?

SpectrixDev commented 6 years ago

It's unpronounceable

SpectrixDev commented 6 years ago

Also, Auxiliatrium doesn't use the Google API. So I'd have to do something different

SuperMarioLord64 commented 6 years ago

Au-xilia-trium

SuperMarioLord64 commented 6 years ago

:P

LevitatingBusinessMan commented 6 years ago

Google really doesn't like scrapers. I don't recommend this. If you do use it just use a pip package

brahmnw commented 6 years ago

Bruv, Google has a search API lol. Just search for it lmao

LevitatingBusinessMan commented 6 years ago

@notBanii Yes but for a price... Let's see if you can afford it

ghost commented 6 years ago

am i too late to the party :)

brahmnw commented 6 years ago

@LevitatingBusinessMan https://developers.google.com/custom-search/docs/tutorial/introduction

samhza commented 6 years ago

@notBanii That's for websites that want a search bar for site content within the site...

ghost commented 6 years ago

lmao

brahmnw commented 6 years ago

Oof

SpectrixDev commented 6 years ago

Yeah, I'll use a pip package, maybe something like this