Skip to content

freddiefujiwara/docq

Repository files navigation

Build Status Build status CircleCI npm version codecov dependencies Status

docq

Parsing HTML at the command line

Requirements

  • Node 7.6 or later

Installation

npm i -g docq

Usage

                                                                                                          
                                                                                                                               
  Usage: docq [options] <query> [file.html]                                                                                    
                                                                                                                               
  Parsing HTML at the command line                                                                                             
                                                                                                                               
                                                                                                                               
  Options:                                                                                                                     
                                                                                                                               
    -V, --version     output the version number                                                                                
    -t --type <type>  Output type: (inner|outer|text|value)                                                                    
    -h, --help        output usage information  

Example

$  wget -q -O - http://www.google.co.jp/ | docq 'input[name="biw"]'                                               
<input name="biw" type="hidden">    

FAQ

FAQ

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/freddiefujiwara/docq

About

Parsing HTML at the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published