Questions tagged [xidel]

Xidel is a command line tool to download and extract data from HTML/XML pages as well as JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern templates. It can also edit or create new XML/HTML/JSON documents.

Xidel supports:

Extract expressions

  • CSS 3 Selectors: to extract simple elements
  • XPath 3.0: to extract values and calculate things with them
  • XQuery 3.0: to create new documents from the extracted values
  • JSONiq: to work with JSON apis
  • Templates: to extract several expressions in an easy way using an annotated version of the page for pattern-matching
  • XPath 2.0/XQuery 1.0: compatibility mode for the old XPath/XQuery version

Following

  • HTTP Codes: Redirections like 30x are automatically followed, while keeping things like cookies
  • Links: It can follow all links on a page as well as some extracted values
  • Forms: It can fill in arbitrary data and submit the form

Output formats

  • Adhoc: just prints the data in a human readable format
  • XML: encodes the data as XML
  • HTML: encodes the data as HTML
  • JSON: encodes the data as JSON
  • bash/cmd: exports the data as shell variables

Connections

  • HTTP / HTTPS, as well as local files and stdin

Systems

  • Windows (using wininet), Linux (using synapse+openssl), Mac (synapse)
81 questions
1
vote
2 answers

How to change order of exported variable in Xidel?

I am using Xidel to scrape information from webpage and I am stuck on exporting the information in a different order than it is on the page. Example: { location:=. }{ title:=.…
Jirka Matousek
  • 328
  • 3
  • 7
1
vote
2 answers

Collecting data from web sites

I have two web pages Page 1: Item 1 http://someUrl.html Page 2: http://someUrl.html Info 1 Info 2 Info 3 I want to crawl page 1 and follow…
Hemanshu Bhojak
  • 16,972
  • 16
  • 49
  • 64
0
votes
3 answers

Remove XML nodes with XQuery in a shell

Sample XML: 1234 Kim Scott Value1 Value2 North </innerElement> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/shell" class="post-tag grid--cell" title="show questions tagged 'shell'" rel="tag">shell</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 23 '23 at 17:31">asked Apr 23 '23 at 17:31</time> <a href="../../users/465183/gilles-quenot" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/465183.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Gilles Quénot" /> </a> <div class="s-user-card--info"> <a href="../../users/465183/gilles-quenot" class="s-user-card--link">Gilles Quénot</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">173,512</li> <li class="s-award-bling s-award-bling__gold" title="41 gold badges">41</li> <li class="s-award-bling s-award-bling__silver" title="224 silver badges">224</li> <li class="s-award-bling s-award-bling__bronze" title="223 bronze badges">223</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-75821302"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>3</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/75821302/how-to-print-values-from-different-fields-combined" class="question-hyperlink">How to print values from different fields combined?</a></h3> <div class="excerpt">I'm using xidel and playing with web scraping (without templates for now). I would like to get the title and price of a book and its price so they could be printed on one line for each entry: title --> price Based on an answer from this forum I can…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/shell" class="post-tag grid--cell" title="show questions tagged 'shell'" rel="tag">shell</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 23 '23 at 09:34">asked Mar 23 '23 at 09:34</time> <a href="../../users/8483813/sebastianm" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/8483813.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="SebastianM" /> </a> <div class="s-user-card--info"> <a href="../../users/8483813/sebastianm" class="s-user-card--link">SebastianM</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">33</li> <li class="s-award-bling s-award-bling__bronze" title="5 bronze badges">5</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-75635426"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/75635426/use-a-variable-as-xpath-expression-not-expected-behavior" class="question-hyperlink">Use a variable as XPath expression. Not expected behavior</a></h3> <div class="excerpt">To parse reddit.com, I use xidel -e…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/shell" class="post-tag grid--cell" title="show questions tagged 'shell'" rel="tag">shell</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Mar 04 '23 at 11:40">asked Mar 04 '23 at 11:40</time> <a href="../../users/465183/gilles-quenot" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/465183.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Gilles Quénot" /> </a> <div class="s-user-card--info"> <a href="../../users/465183/gilles-quenot" class="s-user-card--link">Gilles Quénot</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">173,512</li> <li class="s-award-bling s-award-bling__gold" title="41 gold badges">41</li> <li class="s-award-bling s-award-bling__silver" title="224 silver badges">224</li> <li class="s-award-bling s-award-bling__bronze" title="223 bronze badges">223</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-74161494"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/74161494/what-s-the-difference-between-this-two-full-xpath" class="question-hyperlink">What's the difference between this two FULL XPATH?</a></h3> <div class="excerpt">The link I used is here My procedure of getting the "price" xpath are: go to the link using chrome use tool inspect element search for the price number then come into <span class="QuoteStrip-lastPrice">some_numbers</span> right click the element,…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/google-chrome" class="post-tag grid--cell" title="show questions tagged 'google-chrome'" rel="tag">google-chrome</a> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/web-inspector" class="post-tag grid--cell" title="show questions tagged 'web-inspector'" rel="tag">web-inspector</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 22 '22 at 06:19">asked Oct 22 '22 at 06:19</time> <a href="../../users/20297644/foopeen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/20297644.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="foopeen" /> </a> <div class="s-user-card--info"> <a href="../../users/20297644/foopeen" class="s-user-card--link">foopeen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">31</li> <li class="s-award-bling s-award-bling__bronze" title="5 bronze badges">5</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-74148864"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/74148864/how-to-extract-some-digits-text-between-many-texts-from-a-file-in-bash" class="question-hyperlink">How to extract some digits text, between many texts from a file in bash?</a></h3> <div class="excerpt">I want to scrape a .mhtml file using bash, originally I only use curl+xidel to scrape the html file, but now the web has "something" that prevent me from scraping. this is some of the content: QuoteStrip-watchLiveLink">LIVE<img…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/bash" class="post-tag grid--cell" title="show questions tagged 'bash'" rel="tag">bash</a> <a href="../../questions/tagged/macos" class="post-tag grid--cell" title="show questions tagged 'macos'" rel="tag">macos</a> <a href="../../questions/tagged/scrape" class="post-tag grid--cell" title="show questions tagged 'scrape'" rel="tag">scrape</a> <a href="../../questions/tagged/mhtml" class="post-tag grid--cell" title="show questions tagged 'mhtml'" rel="tag">mhtml</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 21 '22 at 04:45">asked Oct 21 '22 at 04:45</time> <a href="../../users/20297644/foopeen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/20297644.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="foopeen" /> </a> <div class="s-user-card--info"> <a href="../../users/20297644/foopeen" class="s-user-card--link">foopeen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">31</li> <li class="s-award-bling s-award-bling__bronze" title="5 bronze badges">5</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-73515115"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/73515115/why-is-the-last-slash-of-a-node-missing-in-xidel-output" class="question-hyperlink">Why is the last slash of a node missing in xidel output?</a></h3> <div class="excerpt">$ xidel --output-format html -s -e 'x:replace-nodes(//script,())' - <<< '<html><head><script>x=1</script><link href="http://example.com" type='text/css' rel='stylesheet' /></head><body>abc</body></html>' <!DOCTYPE html> <html><head><link…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 27 '22 at 23:48">asked Aug 27 '22 at 23:48</time> <a href="../../users/1424739/user1424739" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1424739.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user1424739" /> </a> <div class="s-user-card--info"> <a href="../../users/1424739/user1424739" class="s-user-card--link">user1424739</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11,937</li> <li class="s-award-bling s-award-bling__gold" title="17 gold badges">17</li> <li class="s-award-bling s-award-bling__silver" title="63 silver badges">63</li> <li class="s-award-bling s-award-bling__bronze" title="152 bronze badges">152</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-73460385"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/73460385/how-to-remove-an-html-node-type" class="question-hyperlink">How to remove an html node type?</a></h3> <div class="excerpt">xidel can be used to extract nodes. But I want to remove a html node type, e.g., all the <script> nodes. Is there a way to do so? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 23 '22 at 14:18">asked Aug 23 '22 at 14:18</time> <a href="../../users/1424739/user1424739" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1424739.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user1424739" /> </a> <div class="s-user-card--info"> <a href="../../users/1424739/user1424739" class="s-user-card--link">user1424739</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11,937</li> <li class="s-award-bling s-award-bling__gold" title="17 gold badges">17</li> <li class="s-award-bling s-award-bling__silver" title="63 silver badges">63</li> <li class="s-award-bling s-award-bling__bronze" title="152 bronze badges">152</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-70685603"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/70685603/using-trace-stack-as-argument-to-xidel" class="question-hyperlink">Using --trace-stack as argument to xidel</a></h3> <div class="excerpt">I'm getting an error from the following request @ECHO OFF "H:\Xidel\Xidel.exe" --input-format json-strict -s "H:\ICA\PRIV.JSON\JSON_FORMATTED\JPB113_SWAGGER.JSON" -e "count($json)" 1>NUL 2>"H:\A_MS_exe\json_format_results.txt" The results shown in…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/json" class="post-tag grid--cell" title="show questions tagged 'json'" rel="tag">json</a> <a href="../../questions/tagged/cmd" class="post-tag grid--cell" title="show questions tagged 'cmd'" rel="tag">cmd</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 12 '22 at 17:08">asked Jan 12 '22 at 17:08</time> <a href="../../users/4809250/michael-simpson" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4809250.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Michael Simpson" /> </a> <div class="s-user-card--info"> <a href="../../users/4809250/michael-simpson" class="s-user-card--link">Michael Simpson</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">37</li> <li class="s-award-bling s-award-bling__silver" title="2 silver badges">2</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-65982250"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/65982250/how-remove-a-certain-node-in-text" class="question-hyperlink">How remove a certain node in text?</a></h3> <div class="excerpt">https://www.iana.org/domains/arpa I can get following output using the xpath '//table[@id="arpa-table"]/tbody/tr/join((td[1], normalize-space(td[2])), x:cps(9))' with xidel. But I want to put things like RFC 3172 in a 3rd column and /go/rfc3172 in a…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 31 '21 at 17:38">asked Jan 31 '21 at 17:38</time> <a href="../../users/1424739/user1424739" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1424739.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user1424739" /> </a> <div class="s-user-card--info"> <a href="../../users/1424739/user1424739" class="s-user-card--link">user1424739</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11,937</li> <li class="s-award-bling s-award-bling__gold" title="17 gold badges">17</li> <li class="s-award-bling s-award-bling__silver" title="63 silver badges">63</li> <li class="s-award-bling s-award-bling__bronze" title="152 bronze badges">152</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-65941941"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/65941941/how-can-i-pass-external-variable-with-xidel-tool" class="question-hyperlink">How can I pass external variable with Xidel tool?</a></h3> <div class="excerpt">I have a XQuery expression stored in a file (: file process.xq :) declare variable $var external; ... and use it with Xidel. xidel --silent --color=never --xml --xquery "$(< process.xq)" my.xml How can I pass such external variable? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/bash" class="post-tag grid--cell" title="show questions tagged 'bash'" rel="tag">bash</a> <a href="../../questions/tagged/variables" class="post-tag grid--cell" title="show questions tagged 'variables'" rel="tag">variables</a> <a href="../../questions/tagged/command" class="post-tag grid--cell" title="show questions tagged 'command'" rel="tag">command</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 28 '21 at 17:09">asked Jan 28 '21 at 17:09</time> <a href="../../users/104897/rnd-nr-gen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/104897.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="rnd_nr_gen" /> </a> <div class="s-user-card--info"> <a href="../../users/104897/rnd-nr-gen" class="s-user-card--link">rnd_nr_gen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,203</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="36 silver badges">36</li> <li class="s-award-bling s-award-bling__bronze" title="55 bronze badges">55</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-64146321"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/64146321/xpath-extract-the-trailing-text-of-a-node" class="question-hyperlink">xpath: extract the trailing text of a node</a></h3> <div class="excerpt">I have an html file of the following content. ... <table><tbody> ... <tr> <td><span class="myclass">C</span> <a href="/myurl" title="myclick">mytext</a> tailing text </td> …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/xpath" class="post-tag grid--cell" title="show questions tagged 'xpath'" rel="tag">xpath</a> <a href="../../questions/tagged/xquery" class="post-tag grid--cell" title="show questions tagged 'xquery'" rel="tag">xquery</a> <a href="../../questions/tagged/xidel" class="post-tag grid--cell" title="show questions tagged 'xidel'" rel="tag">xidel</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 30 '20 at 21:57">asked Sep 30 '20 at 21:57</time> <a href="../../users/1424739/user1424739" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1424739.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user1424739" /> </a> <div class="s-user-card--info"> <a href="../../users/1424739/user1424739" class="s-user-card--link">user1424739</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11,937</li> <li class="s-award-bling s-award-bling__gold" title="17 gold badges">17</li> <li class="s-award-bling s-award-bling__silver" title="63 silver badges">63</li> <li class="s-award-bling s-award-bling__bronze" title="152 bronze badges">152</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-63937365"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>2</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/63937365/why-can-t-extract-data-with-xidel" class="question-hyperlink">Why can't extract data with xidel?</a></h3> <div class="excerpt">Display content in books.xml. cat books.xml <?xml version="1.0" encoding="UTF-8"?> <books> <book category="JAVA"> <title lang="en">Learn Java in 24 Hours Robert 2005
showkey
  • 482
  • 42
  • 140
  • 295
0
votes
1 answer

How to bypass a country blocked web page on Xidel?

say I run this on terminal: xidel -se '//span[@id="last_last"]' 'https://www.investing.com/currencies/xau-usd' but what happened after is this: Error: Internet Error: -4 when talking to: https://www.investing.com/currencies/xau-usd how to bypass…
CuriousNewbie
  • 319
  • 4
  • 13