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.

파일 탐색기

  • .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

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

xidel

설명 보기 ▼

HTML/XML 페이지 및 JSON API에서 데이터를 다운로드하고 추출.
더 많은 정보: <https://www.videlibri.de/xidel/>.

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

Google 검색으로 찾은 모든 URL 출력:

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

Google 검색으로 찾은 모든 페이지의 제목을 출력하고 다운로드:

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

페이지의 모든 링크를 따라가서 제목을 XPath로 출력:

// repository documentation