xidel

(★ 843)

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.

File Explorer

  • .hgtags
  • .travis.yml
  • _hg.filemap
  • build.sh
  • cgi.css
  • cgi.js
  • changelog
  • COPYING
  • install.sh
  • manage.sh
  • printUsage.inc
  • README.md
  • readme.txt
  • xidel.lpi
  • xidel.pas
  • xidelbase.pas
  • xidelcgi.lpi
  • xidelcgi.lpr
  • xidelcrt.pas

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

xidel

View Details ▼

Download and extract data from HTML/XML pages as well as JSON APIs.

xidel {{https://www.google.com/search?q=test}} {{[-e|--extract]}} "//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']"

Print all URLs found by a Google search:

xidel {{https://www.google.com/search?q=test}} {{[-f|--follow]}} "{{//a/extract(@href, 'url[?]q=([^&]+)&', 1)[. != '']}}" {{[-e|--extract]}} {{//title}} --download '{{{$host}/}}'

Print the title of all pages found by a Google search and download them:

xidel {{https://example.org}} {{[-f|--follow]}} {{//a}} {{[-e|--extract]}} {{//title}}

Follow all links on a page and print the titles, with XPath:

// repository documentation