phpQuery имеет CommandLineInterface как CLI.
1 2 3 4 |
Использование: phpquery URL --method1 arg1 arg2 argN --method2 arg1 arg2 argN ... Пример: phpquery 'http://localhost' --find 'div > p' --contents Путь: cat index.html | phpquery --find 'div > p' --contents Документация: http://code.google.com/p/phpquery/wiki/ |
Пример
Получить колличество всех закачек пакетов
1 2 3 |
phpquery 'http://code.google.com/p/phpquery/downloads/list?can=1' \ --find '.vt.col_4 a' --contents \ --getString null array_sum |
If we can stay in touch with that hunger, the pot will keep bubbling and ideas that engage us will continue rising pro-academic-writers.com to the surface.