Quantcast
Channel: User MatrixView - Stack Overflow
Browsing latest articles
Browse All 21 View Live

Comment by MatrixView on Pass external variable to xidel in bash loop script

You mean something like this (Windows - batch): FOR %A IN (5,8,14,21) DO xidel -q vpngate.net/en -e...

View Article



Comment by MatrixView on RegEx to swap only the first 2 digits of a middle...

Tim, thanx for your very helpful solution! Unfortunately my pseudocode did NOT catch this one case that does NOT conform to the original description: When the first 2 digits in the middle-string are...

View Article

Comment by MatrixView on RegEx to swap only the first 2 digits of a middle...

Thx CoRoNe! Didn't know this could be done as a one-liner. The RegEx's are basically the same as Tim's solution.

View Article

Comment by MatrixView on How to get the highest numbered link from curl result?

If you use Linux, swap double quotes for single.

View Article

Comment by MatrixView on list all json pointers with xidel

Wow, always surprised how powerful and versatile Xidel is. The bots you write are still way above my level. I also found that reddit-chat-bot on your xidel-github, but most of its contents was...

View Article


Comment by MatrixView on Extract JPG urls from Bing or Google search

Yup, both Reino's extraction queries are shorter, easier to understand and probably faster than a RegEx parsing. The great thing with Xidel is that there are many ways to do stuff because it knows (and...

View Article

Comment by MatrixView on How to merge a remote json referenced by a url...

Xidel: my favo tool to write extractors. And usually in the most effective/shortest way possible... a one-liner. Brilliant. Now BeniBela should work on the marketing... because very few people know...

View Article

Comment by MatrixView on xidel template extract from button tag

if you can, post the real URL and the text/attribute you need extracted...

View Article


Answer by MatrixView for Collecting data from web sites

I recently found Xidel, so I'm no expert, but in my opinion it's an extremely powerful swiss-knife commandline scrape tool, that should be known by many more people.Now, to answer your question I think...

View Article


Answer by MatrixView for Read XML file with windows batch

...I'm sure you're aware that parsing XML with batch might not be the easiest/smartest thing to do.Tools like xmlstarlet and xidel are better suited for this:xidel -q file.xml -e //build...to save the...

View Article

Answer by MatrixView for How to change order of exported variable in Xidel?

This may be as easy as:xidel -q page.html -e subtitle:=//h2,title:=//h1Something like the following (with several "-e" params) would also work, but like the previous code it will first group all...

View Article

Answer by MatrixView for How to get a Youtube channel RSS feed after 2015...

I've made a batch script that creates an RSS feed of your new subscription videos. You don't need an API key. The script uses 2 external tools: YouTube-DL and Xidel.Anyway, read the following thread,...

View Article

RegEx to swap only the first 2 digits of a middle part of a string?

I seem to have quite a difficult task ahead that I need to solve with xQuery and regular expressions.The case: I have an ALPHANUMERIC string with a VARIABLE length of 20 to 30 chars where ONLY the...

View Article


Answer by MatrixView for Finding a specific link from a site

Xidel is meant to extract data from HTML/XML/json files, but it can also extract from CSV's and TXT if you know how to use the $raw variable and xidel/xquery functions, like extract(), tokenize() and...

View Article

Answer by MatrixView for Print string between specific Tag from xml using...

download xidel, which can do xpath:xidel file.xml -e "//name"

View Article


Answer by MatrixView for Grab links from a chat box and save them to CSV...

Something like this?xidel -q example1.xml -e "//b"or as a CSV:xidel -q example1.xml -e "join(//b,',')"

View Article

Answer by MatrixView for xidel how to follow pagination html and extract URL?

Reino is right. But querying Google can also be done like this:xidel -s "https://www.google.com" ^ -f "form(//form,{'q':'xidel follow pagination','num':'25'})" ^ -e...

View Article


Answer by MatrixView for XIDEL export extracted data (div) from multiple HTML...

add a parameter: --output-format=html

View Article

Answer by MatrixView for How to extract data from file with xidel with custom...

Actually xidel is meant to extract data from structured data like xml/html/json with languages like xquery/xpath/templates/jsonic... and is not particularly designed for text based extraction. However,...

View Article

Answer by MatrixView for Windows CLI | What are the correct qoutes/syntax for...

Like this, and also demonstrating the --output-format=cmd parameter:for /f %%j in ('^" xidel -s file.txt -e "grep:=extract($raw,'grab=(.*)',1)" --output-format^=cmd ^"') do %%jecho The value of grab =...

View Article

Answer by MatrixView for Xidel extract data inside the tag -- raw output

Can be done in a couple of ways with Xidel, which is why I love it so much.HTML-templating:xidel -s file.html -e "<div class='description'>{inner-html()}</div>"XPath:xidel -s file.html -e...

View Article

Browsing latest articles
Browse All 21 View Live




Latest Images