-
Notifications
You must be signed in to change notification settings - Fork 3
Searchers
Giacomo Stelluti Scala edited this page Jan 25, 2020
·
9 revisions
A sercher service is configured in a SearchContext
in order to produce a sequence of ResultInfo
. It's a class that must be a subtype of Searcher
and must override and mark async
the following abstract method:
Task<IEnumerable<ResultInfo>> SearchAsync(string query)
It's also mandatory to define a constructor that accepts a single object
parameter, used for the settings of the specific searcher.
PickAll comes with following built-in searchers:
- Google: scrapes first result page of google.com
- DuckDuckGo: scrapes first result page of duckduckgo.com
- Yahoo:: scrapes first result page of yahoo.com
- Bing: scrapes first result page of bing.com