benibela/xidel
소개
CSS, XPath 3.0, XQuery 3.0, JSONiq 또는 패턴 매칭을 사용해 HTML/XML 페이지나 JSON API에서 데이터를 다운로드하고 추출하는 명령줄 도구입니다. 새로운 XML/HTML/JSON 문서를 만들거나 기존 문서를 변환할 수도 있습니다.
개발 도구측정된 스타 증가
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalXidel 
Xidel is a command line tool to download and extract data from HTML/XML pages using CSS selectors, XPath/XQuery 3.0, as well as querying JSON files or APIs (e.g. REST) using JSONiq.
There are dependency-free binaries for Windows, Linux and Mac.
It is a wrapper around my Pascal Internet Tools (see repository internettools), so it supports XPath 2.0, XPath 3.0, XQuery 1.0, XQuery 3.0, JSONiq, CSS selectors and my own extensions/languages (e.g. pattern matching) and if you can compile that project, you can compile Xidel.
A simple example to return the titles of all pages linked by some starting page:
xidel http://example.org --follow //a --extract //title
or simpler
xidel http://example.org -f //a -e //title
The language can be explicitly chosen. For example
xidel input.html --css 'a'
xidel input.html --xpath '//a/@href'
xidel input.html --xquery 'for $var in //a order by $var return $var'
returns all links, the target URI of each link or the text of all links alphabetically.
There are more examples on the above page with binaries, the github wiki and in the directory examples.
Screenshots


Compilation and Installation
You can compile it by calling build.sh and install it by calling build.sh -t. Alternatively you can compile it with the Lazarus IDE.
You can call the commands from the .travis.yml script to download dependencies.
관련 프로젝트 살펴보기
불러오는 중…