github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tenderlove / nokogiri

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 778
    • 54
  • Source
  • Commits
  • Network (54)
  • Issues (17)
  • Downloads (21)
  • Wiki (7)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (8)
    • dtd
    • fix-mkmf-mf
    • java
    • large-node-set-optimize
    • macruby
    • master ✓
    • rip
    • sax
  • Tags (21)
    • REL_1.4.1
    • REL_1.4.0
    • REL_1.3.3
    • REL_1.3.2
    • REL_1.3.1
    • REL_1.3.0rc1
    • REL_1.3.0
    • REL_1.2.3
    • REL_1.2.2
    • REL_1.2.1
    • REL_1.2.0
    • REL_1.1.1
    • REL_1.1.0
    • REL_1.0.7
    • REL_1.0.6
    • REL_1.0.5
    • REL_1.0.4
    • REL_1.0.3
    • REL_1.0.2
    • REL_1.0.1
    • REL_1.0.0
Sending Request…
Click here to lend your support to: nokogiri and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support. — Read more

  cancel

http://nokogiri.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fixing docs 
tenderlove (author)
Mon Feb 08 15:08:43 -0800 2010
commit  348c81ef459732bd79560428916dc63320e2ccbf
tree    96603ddd3bf3877032ac87b1953dbfae9159b6f7
parent  aaac682967fffa1bc120ef010f8d56f1d96e30eb
nokogiri /
name age
history
message
file .autotest Thu Nov 05 20:00:11 -0800 2009 updating autotest [tenderlove]
file .gitignore Sun Jul 05 17:08:28 -0700 2009 fixing problem with 1.8.5 [tenderlove]
file CHANGELOG.ja.rdoc Thu Dec 10 20:35:31 -0800 2009 adding japanese translation [tenderlove]
file CHANGELOG.rdoc Sun Feb 07 11:19:52 -0800 2010 checking for a NULL nodeset on return from xpath [tenderlove]
file Manifest.txt Tue Jan 19 20:45:47 -0800 2010 xpath methods can return things other than node... [tenderlove]
file README.ja.rdoc Sun Dec 06 12:46:16 -0800 2009 adding the japanese mailing list to the rdoc [tenderlove]
file README.rdoc Sun Dec 20 19:13:34 -0800 2009 add general encoding statement to the project R... [yob]
file Rakefile Thu Dec 10 19:54:18 -0800 2009 rolling windows libxml2 back [tenderlove]
directory bin/ Tue Sep 01 10:23:47 -0700 2009 adding the xml type argument [tenderlove]
file deps.rip Sat Oct 31 13:15:17 -0700 2009 deps.rip for rip install [jmhodges]
directory ext/ Sun Feb 07 11:19:52 -0800 2010 checking for a NULL nodeset on return from xpath [tenderlove]
directory lib/ Mon Feb 08 15:08:43 -0800 2010 fixing docs [tenderlove]
directory tasks/ Mon Jun 22 22:10:11 -0700 2009 removing valgrind tasks in favor of a hoe plugin [tenderlove]
directory test/ Sun Feb 07 14:22:16 -0800 2010 Node#fragment generates a fragment relative to ... [tenderlove]
README.rdoc

Nokogiri

  • nokogiri.org
  • github.com/tenderlove/nokogiri/wikis
  • github.com/tenderlove/nokogiri/tree/master
  • groups.google.com/group/nokogiri-talk
  • github.com/tenderlove/nokogiri/issues

DESCRIPTION:

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors.

XML is like violence - if it doesn’t solve your problems, you are not using enough of it.

FEATURES:

  • XPath support for document searching
  • CSS3 selector support for document searching
  • XML/HTML builder

Nokogiri parses and searches XML/HTML very quickly, and also has correctly implemented CSS3 selector support as well as XPath support.

Here is a speed test:

  * http://gist.github.com/24605

SUPPORT:

The Nokogiri mailing list is available here:

  * http://groups.google.com/group/nokogiri-talk

The bug tracker is available here:

  * http://github.com/tenderlove/nokogiri/issues

The IRC channel is #nokogiri on freenode.

SYNOPSIS:

  require 'nokogiri'
  require 'open-uri'

  # Get a Nokogiri::HTML:Document for the page we’re interested in...

  doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))

  # Do funky things with it using Nokogiri::XML::Node methods...

  ####
  # Search for nodes by css
  doc.css('h3.r a.l').each do |link|
    puts link.content
  end

  ####
  # Search for nodes by xpath
  doc.xpath('//h3/a[@class="l"]').each do |link|
    puts link.content
  end

  ####
  # Or mix and match.
  doc.search('h3.r a.l', '//h3/a[@class="l"]').each do |link|
    puts link.content
  end

REQUIREMENTS:

  • ruby 1.8 or 1.9
  • libxml2
  • libxml2-dev
  • libxslt
  • libxslt-dev

ENCODING:

Strings are always stored as UTF-8 internally. Methods that return text values will always return UTF-8 encoded strings. Methods that return XML (like to_xml, to_html and inner_html) will return a string encoded like the source document.

INSTALL:

  • sudo gem install nokogiri

Binary packages

Binary packages are available for:

  • SuSE
  • Fedora

DEVELOPMENT:

Developing Nokogiri requires racc and rexical.

  • rake install:deps
  • rake test

LICENSE:

(The MIT License)

Copyright © 2008 - 2009:

  • Aaron Patterson
  • Mike Dalessio

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server