Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-30-2017, 02:39 AM   #1
Michael Uplawski
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 691
Blog Entries: 22

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
parse HTML on the command-line (xpath/css) with nokogiri

Good morning.

There are a few threads on LQ which mention the Ruby-Gem Nokogiri. While the uses of the gem, my own included, had been restricted to cases where it had been part of regular Ruby-programs, only today I have discovered that Nokogiri comes with a command-line utility...

The web-page is here:
Nokogiri as a command-line tool

I just finish a blog-post to show another practical use of this:
Word-definitions on the command-line, continuing to target CSS elements in the html of a given page.

Old 10-09-2017, 02:16 AM   #2
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,562

Rep: Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092
Thank you!


command-line, nokogiri, parse html, xpath

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Y'know CSS was to kill off HTML table layout? Well, second time's a charm: Meet CSS Grid LXer Syndicated Linux News 0 04-01-2017 07:03 PM
cli html xpath/css parser zpimp Linux - Software 1 02-17-2016 12:52 PM
CSS - Is there a way to put several lines of HTML into one line using CSS? Chronothread Programming 12 01-05-2011 06:06 AM
how to print a html file with css from command line? Lokiji Linux - Software 4 09-17-2007 03:42 AM
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration