2017 © Pedro Peláez
 

library domq

Command line XML/HTML DOM Parser

image

alc/domq

Command line XML/HTML DOM Parser

  • Wednesday, December 7, 2016
  • by chemel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

domq

Command line HTML DOM Parser, (*1)

Install globaly via composer


composer global require alc/domq # Make sure you have export PATH in your ~/bashrc export PATH=~/.config/composer/vendor/bin:$PATH

Usage


# Query Hacker News Titles domq https://news.ycombinator.com/ a.storylink innertext # Query Hacker News Urls domq https://news.ycombinator.com/ a.storylink getAttribute href # Query Google Urls domq https://www.google.fr/search?q=github 'h3.r a' attr href # Query a local file domq sitemap.xml 'sitemap loc' innertext # Query a list of urls domq urls=urls.txt 'h1.entry-title a' attr href # Parse from stdin curl -s http://blog.chemel.fr/sitemap.xml | domq stdin loc innertext # Piping domq http://blog.chemel.fr/sitemap.xml loc | domq urls=- loc # Show help domq --help

The Versions

07/12 2016

dev-master

9999999-dev https://github.com/chemel/domq

Command line XML/HTML DOM Parser

  Sources   Download

MIT

The Requires

 

parser cli

07/12 2016

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/chemel/domq

Command line XML/HTML DOM Parser

  Sources   Download

MIT

The Requires

 

parser cli

07/12 2016

v1.0.0

1.0.0.0 https://github.com/chemel/domq

Command line XML/HTML DOM Parser

  Sources   Download

MIT

The Requires

 

parser cli

07/12 2016

0.5.x-dev

0.5.9999999.9999999-dev https://github.com/chemel/domq

Command line XML/HTML DOM Parser

  Sources   Download

MIT

The Requires

 

parser cli

07/12 2016

v0.5.0

0.5.0.0 https://github.com/chemel/domq

Command line XML/HTML DOM Parser

  Sources   Download

MIT

The Requires

 

parser cli