xmltodict
xidel
Our great sponsors
xmltodict | xidel | |
---|---|---|
7 | 17 | |
5,022 | 538 | |
- | - | |
0.0 | 6.6 | |
4 months ago | 3 months ago | |
Python | Pascal | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
xmltodict
-
Top python libraries/ frameworks that you suggest every one
Nope, sorry, it's just an XML generator. The Python stdlib offers https://docs.python.org/3/library/xml.etree.elementtree.html and PyPI offers https://github.com/martinblech/xmltodict for parsing, and you could write CSV with csvwriter or pandas.
-
Like JQ, but for HTML
xmlstarlet is really nothing like jq, as a language. But yes, I use it because it is the best commandline xml processor I'd found. That's the only similarity to jq.
Is this the yq? https://kislyuk.github.io/yq/ It does contain an 'xq', as a literal wrapper for jq, piping output into it after transcoding XML to JSON using xmltodict https://github.com/martinblech/xmltodict (which explodes xml into separate JSON data structures).
This is a bash one-liner! But TBF it really is a 'jq for xml'. I think it would be horrible for some things, but you could also do a lot of useful things painlessly.
xidel
-
Batch Win Installer - from a defined list of software, BWI will install software on 64 bit Windows 10/11 x64 machine without prompts ; check what software is installed and offer to install and/or upgrade software and scan program's websites to determine the latest version of the software available
Windows binary of Xidel (https://github.com/benibela/xidel) a commandline tool to download and extract data from HTML pages
- pup: Parsing HTML at the Command Line
-
What's the best tool to build pipelines from REST APIs?
Xidel for extraction and pagination
-
What are your coolest tools for one-liners ?
Download an entire subreddit to JSON Lines with Xidel:
-
Like JQ, but for HTML
> Well, jq is grep as well as sed and awk, but yeah, htmlq seems to be just grep, for sake of comparison.
Exactly, and that is what I mean. If you want to compare, compare it with grep, not jq.
Someone else posted xidel[0] in this thread, which I've not used, but it seems to be the "jq but for html".
-
XML processor similar to jq
You want xidel! Check out https://www.videlibri.de/xidel.html (apologies, I'm mobile at the moment and can't link properly).
-
Search web freely from command line?
xidel is nice for crawling / scraping sites from the command line
What are some alternatives?
lxml - The lxml XML toolkit for Python
untangle - Converts XML to Python objects
jq - Command-line JSON processor
MarkupSafe - Safely add untrusted strings to HTML/XML markup.
pyquery - A jquery-like library for python
selectolax - Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors).
xmldataset - xmldataset: xml parsing made easy 🗃️
pup - Parsing HTML at the command line
gron - Make JSON greppable!
xhtml2pdf - A library for converting HTML into PDFs using ReportLab
bleach - Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
tools - various linux scripts