pyquery-cli

A command line interface for JQuery like search and extract data from HTML. see the README.md file.


Keywords
jquery, pyquery, html
License
Other
Install
pip install pyquery-cli==0.0.1

Documentation

PyQuery

jquery like queries on command line shell

usage

$ ./pyquery-cli -h
Usage:
-h, --help
-o, --output
-v, --version
-s, --select   'query'
-a, --attr     'attr_name'
-t, --text
-H, --html
-f, --file     <file>
  • -H prints the html of the founded search
  • -t prints thr inner text of the founded search

if no file is given it reads from stdin.

examples

testfile.html:

<html><input id="pippo" name="kkk" value="23" /></html>
$ ./pyquery-cli -f test/testfile.html -s'#pippo'
<input id="pippo" name="kkk" value="23"/>
$ ./pyquery-cli -f test/testfile.html -s'#pippo' -a 'name'
kkk