You are here

Xidel 0.6 released (cli "webscraper" and XQuery engine)

1 post / 0 new
BeniBela
Offline
Last seen: 9 years 9 months ago
Joined: 2012-11-09 07:00
Xidel 0.6 released (cli "webscraper" and XQuery engine)

I just made a new release of my Xidel, a command line tool for extracting data from web/html sites, supporting XQuery 1, XPath 2, CSS 3 selectors and pattern-matching.

E.g. you can get a list of all portable apps here with css selectors and xpath:

   xidel https://portableapps.com/apps -e 'css(".content")/h2/following-sibling::ul/li/a'

Or only css: (but Xidel is mainly a XPath/XQuery processor, the css part is not really tested => I bet you can find some bugs there):

   xidel https://portableapps.com/apps -e 'css(".content h2 ~ ul li a")'

Or with pattern-matching, you can get all newly released apps on the front page:

    xidel https://portableapps.com/ -e "<div><h1>Latest Releases</h1><a>{.}</a>*<a>All Releases</a></div>"

It is fully portable, since it is a single binary, has no dependencies (except libc and openssl on Linux), and no config/data files; but I'm too lazy to make it in the portableapps format. I hope someone here wants to do that...

[Shifted from Beta Testing to Request Apps, because it's not in PAF - mod Chris]