dominator 0.9.0

A HTML scraper Command-line Application


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

#dominator dominator is a HTML scraper for the Command-line.

#example

1.

This Example shows a query for a-tags, that are children of a li-tag and has a class Attibute with the value "link". We want to the output to be "Tag"\t"Element Attributes csv"\t"value of the element Attribute href"\n for each hit

$ cat ./dummy.html | ./dominator -f'li.a{class:link}' -o'tag' -o'attrib-keys' -o'attrib(href)'
a	href,id,class	#a-1-li-1-o2-1
a	href,id,class	#a-2-li-2-o2-1
a	href,id,class	#a-3-li-2-o2-1

2.

This Example shows a query for a-tags where the href begins with "http"

$ cat ./dummy.html | ./dominator -f'a{href:(regex)^http}' -o'tag' -o'attrib-keys' -o'attrib(href)'
a	href,id,class	https://github.com
Authors:
  • Martin Brzenska
Dependencies:
libdominator
Versions:
1.1.6 2017-Oct-31
1.1.5 2017-Oct-07
1.1.3 2017-Jan-08
1.1.2 2016-Dec-06
1.1.1 2016-Nov-22
Show all 12 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 111 downloads total

Score:
1.0
Short URL:
dominator.dub.pm