Spectrum icon indicating copy to clipboard operation
Spectrum copied to clipboard

Make a custom $search command

Open SuperMarioLord64 opened this issue 7 years ago • 19 comments
trafficstars

Syntax: $search (search engine) (term)

SuperMarioLord64 avatar Aug 30 '18 16:08 SuperMarioLord64

What will it search with? Google?

SpectrixDev avatar Aug 30 '18 16:08 SpectrixDev

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

brahmnw avatar Aug 30 '18 16:08 brahmnw

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

SpectrixDev avatar Aug 30 '18 16:08 SpectrixDev

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

SuperMarioLord64 avatar Aug 30 '18 16:08 SuperMarioLord64

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

SpectrixDev avatar Aug 30 '18 16:08 SpectrixDev

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

SuperMarioLord64 avatar Aug 30 '18 16:08 SuperMarioLord64

It's unpronounceable

SpectrixDev avatar Aug 30 '18 16:08 SpectrixDev

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

SpectrixDev avatar Aug 30 '18 16:08 SpectrixDev

Au-xilia-trium

SuperMarioLord64 avatar Aug 30 '18 16:08 SuperMarioLord64

:P

SuperMarioLord64 avatar Aug 30 '18 16:08 SuperMarioLord64

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

LevitatingBusinessMan avatar Aug 30 '18 16:08 LevitatingBusinessMan

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

brahmnw avatar Aug 30 '18 20:08 brahmnw

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

LevitatingBusinessMan avatar Aug 30 '18 21:08 LevitatingBusinessMan

am i too late to the party :)

ghost avatar Aug 30 '18 21:08 ghost

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

brahmnw avatar Aug 30 '18 21:08 brahmnw

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

samhza avatar Aug 30 '18 21:08 samhza

lmao

ghost avatar Aug 30 '18 21:08 ghost

Oof

brahmnw avatar Aug 30 '18 23:08 brahmnw

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

SpectrixDev avatar Aug 31 '18 11:08 SpectrixDev