forked from TobiaszCudnik/phpquery
-
Notifications
You must be signed in to change notification settings - Fork 66
CommandLineInterface
didier Belot edited this page Mar 6, 2018
·
1 revision
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/
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