benibela / xidel

Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
http://www.videlibri.de/xidel.html
GNU General Public License v3.0
674 stars 42 forks source link

@contains doesn't seem to work #64

Closed ralyodio closed 3 years ago

ralyodio commented 3 years ago

$ xidel http://popurls.com/ --extract '//a[contains(@href,'/go/pop')]/@href'

I'm getting links that don't contain /go/pop

Reino17 commented 3 years ago

Please use double quotes for strings within the query.

ralyodio commented 3 years ago

that worked. thanks