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

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 = Suggestions();
  • get suggestions:

from google:

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

from duckduckgo:

var suggestions = await suggestionProviders.duckduckgo.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
130
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on suggestion_providers