1.0.2 • Published 6 years ago

search-forms v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago