1.0.2 • Published 5 years ago

search-forms v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Search Forms

Automatically detects how to search any site and creates options compatible with mikeal's request library.

npm version npm.io

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!

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago