LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-30-2017, 03:39 AM   #1
Michael Uplawski
Member
 
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 549
Blog Entries: 18

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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.

Cheerio.
 
Old 10-09-2017, 03:16 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 3,313

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Thank you!
 
  


Reply

Tags
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 08:03 PM
cli html xpath/css parser zpimp Linux - Software 1 02-17-2016 01:52 PM
CSS - Is there a way to put several lines of HTML into one line using CSS? Chronothread Programming 12 01-05-2011 07:06 AM
how to print a html file with css from command line? Lokiji Linux - Software 4 09-17-2007 04:42 AM
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 01:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:39 PM.

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