All Projects β†’ benibela β†’ Xidel

benibela / Xidel

Licence: gpl-3.0
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.

Programming Languages

pascal
1382 projects

Projects that are alternatives of or similar to Xidel

Fast Xml Parser
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
Stars: ✭ 1,021 (+204.78%)
Mutual labels:  cli, command-line, json, xml
Httpie
As easy as /aitch-tee-tee-pie/ πŸ₯§ Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+15736.42%)
Mutual labels:  rest, cli, json, curl
Yq
Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
Stars: ✭ 1,688 (+403.88%)
Mutual labels:  cli, command-line, json, xml
Node Rest Client
REST API client from node.js
Stars: ✭ 365 (+8.96%)
Mutual labels:  rest, json, xml
Bashupload
PHP/JavaScript file upload web app to upload files from command line & browser, and download them elsewhere. Frequently used to upload/download files on servers. Hosted version is available at bashupload.com.
Stars: ✭ 56 (-83.28%)
Mutual labels:  wget, cli, curl
Wsend
wsend: The opposite of wget
Stars: ✭ 64 (-80.9%)
Mutual labels:  wget, cli, curl
Cum
comic updater, mangafied
Stars: ✭ 117 (-65.07%)
Mutual labels:  cli, command-line, scraper
Rest Assured
Java DSL for easy testing of REST services
Stars: ✭ 5,646 (+1585.37%)
Mutual labels:  rest, json, xml
Wiremock
A tool for mocking HTTP services
Stars: ✭ 4,790 (+1329.85%)
Mutual labels:  rest, json, xml
Http Rpc
Lightweight REST for Java
Stars: ✭ 298 (-11.04%)
Mutual labels:  rest, json, xml
Restclient.net
.NET REST Client Framework for all platforms
Stars: ✭ 143 (-57.31%)
Mutual labels:  rest, json, xml
Cli
A simple, fast, and fun package for building command line apps in Go
Stars: ✭ 16,995 (+4973.13%)
Mutual labels:  cli, command-line, json
Websocat
Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
Stars: ✭ 3,477 (+937.91%)
Mutual labels:  cli, command-line, curl
Cppwebframework
​The C++ Web Framework (CWF) is a MVC web framework, Open Source, under MIT License, using C++ with Qt to be used in the development of web applications.
Stars: ✭ 348 (+3.88%)
Mutual labels:  rest, json, xml
Oq
A performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data.
Stars: ✭ 132 (-60.6%)
Mutual labels:  cli, json, xml
Jikan
Unofficial MyAnimeList PHP+REST API which provides functions other than the official API
Stars: ✭ 531 (+58.51%)
Mutual labels:  rest, json, scraper
Fetch Plus
πŸ• Fetch+ is a convenient Fetch API replacement with first-class middleware support.
Stars: ✭ 116 (-65.37%)
Mutual labels:  rest, json, xml
Rts
RTS: request to struct. Generates Go structs from JSON server responses.
Stars: ✭ 206 (-38.51%)
Mutual labels:  rest, cli, json
Getnews.tech
A web server that fetches data from the News API and formats it for display in the terminal.
Stars: ✭ 94 (-71.94%)
Mutual labels:  cli, command-line, curl
Ps Webapi
(Migrated from CodePlex) Let PowerShell Script serve or command-line process as WebAPI. PSWebApi is a simple library for building ASP.NET Web APIs (RESTful Services) by PowerShell Scripts or batch/executable files out of the box.
Stars: ✭ 24 (-92.84%)
Mutual labels:  rest, json, xml

Xidel Build Status

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

Xidel on Linux Xidel on Windows

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].