Indeed, in this case it’s good enough. In general hxwls does not always solve the problem, even with -l option, as it’s contextless. (And to be honest I simply forgot about it, because I use almost only hxselect fed with hxnormalize output, I barely use any other tools from html-xml-utils.)
If you, like me, prefer to watch stuff offline (I’m doing it mostly when commuting or before sleeping), then following oneliner can be useful:
curl http://suckless.org/conferences/2016 | hxnormalize -xi0 -l9999 | hxselect -s '\n' 'a[href$=".webm"]' | sed 's,.*href=",,;s,".*,,'It produces following list:
I just discovered html-xml-utils thanks to your post, thank you!
Having said that, this seems simpler:
hxwls http://suckless.org/conferences/2016 | grep webmIndeed, in this case it’s good enough. In general
hxwlsdoes not always solve the problem, even with-loption, as it’s contextless. (And to be honest I simply forgot about it, because I use almost onlyhxselectfed withhxnormalizeoutput, I barely use any other tools from html-xml-utils.)Oh yeah! I get more pumped about suckless conference videos than most other conferences out there :D