suggestion_providers 0.0.1 copy "suggestion_providers: ^0.0.1" to clipboard
suggestion_providers: ^0.0.1 copied to clipboard

outdated

Get search suggestions from search engines, like google, duckduckgo and more.

suggestion_providers #

Pub Package

Get search suggestions (typeahead) from search engines, like google, duckduckgo and more.

supported search engines:

  • google
  • duckduckgo
  • ask
  • brave
  • ecosia
  • searx (custom instances)
  • wolfram alpha
  • search encrypt

Install #

  • Add to pubspec.yaml:
suggestion_providers: v0.0.1
  • get:
dart pub get
  • import:
import 'package:suggestion_providers/suggestion_providers.dart';

Usage #

  • Setup the client.
var suggestionProviders = SuggestionProviders();
  • get suggestions:

from google:

var suggestions = await suggestionProviders.google.suggestions("Hello");

from duckduckgo:

var suggestions = await suggestionProviders.google.suggestions("Hello");

and so on...

and for searx instances:

var suggestions = await suggestionProviders.searx().suggestions("Hello");

all instances that i tested are listed in SuggestionProviders.searxInstances

if you want to use a custom instance of Searx: but make sure to remove the last slash /

var suggestions = await suggestionProviders.searx(base: "https://www.webrats.xyz").suggestions("Hello");
0
likes
0
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

Get search suggestions from search engines, like google, duckduckgo and more.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on suggestion_providers