get direct text using Nokogiri

16 views
Skip to first unread message

Sai Ch

unread,
Sep 1, 2015, 6:22:00 AM9/1/15
to rubyonra...@googlegroups.com
How can I get venue and address values from this code using Nokogiri

<div><b>Venue</b>: <a href=“#">Treasure Island</a></div>
<div><b>Address</b>: Avenue of the Palms, San Francisco, CA</div>

--
Posted via http://www.ruby-forum.com/.

Hassan Schroeder

unread,
Sep 1, 2015, 12:20:53 PM9/1/15
to rubyonrails-talk
On Tue, Sep 1, 2015 at 3:21 AM, Sai Ch <li...@ruby-forum.com> wrote:
> How can I get venue and address values from this code using Nokogiri
>
> <div><b>Venue</b>: <a href=“#">Treasure Island</a></div>
> <div><b>Address</b>: Avenue of the Palms, San Francisco, CA</div>

The Nokogiri docs have plenty of example code; what have you
tried so far?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote
Reply all
Reply to author
Forward
0 new messages