1.0.2 • Published 5 years ago
search-forms v1.0.2
Search Forms
Automatically detects how to search any site and creates options compatible with mikeal's request library.
Detects:
- Sitelinks Searchbox
- OpenSearch
- Forms
npm i --save search-forms
The detection methods are very robust and should work on 99% of sites that are searchable. All result types are abstracted to forms. Forms are ordered by probability of being a preferred search method. The default confidence threshold is set to 20. Forms with negative confidence are not likely to be search forms.
Try it now via RunKit!
See htmlparser2-ultron for parser docs.
Feel free to send PR's and open issues!