Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 503 Bytes

CommandLineInterface.md

File metadata and controls

14 lines (14 loc) · 503 Bytes

phpQuery features CommandLineInterface aka CLI.

Usage: phpquery URL --method1 arg1 arg2 argN --method2 arg1 arg2 argN ...
Example: phpquery 'http://localhost' --find 'div > p' --contents
Pipe: cat index.html | phpquery --find 'div > p' --contents
Docs: http://code.google.com/p/phpquery/wiki/

Example

Fetch number of downloads of all release packages.

phpquery 'http://code.google.com/p/phpquery/downloads/list?can=1' \
  --find '.vt.col_4 a' --contents \
  --getString null array_sum