Project

nokorexi

0.0
Low commit activity in last 3 years
No release in over a year
Uses Nokogiri to produce valid XHTML for use as a Rexle document.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.13, >= 1.13.1
~> 1.5, >= 1.5.14
~> 0.1, >= 0.1.2
 Project Readme

Introducing the Nokorexi gem

The Nokorexi gem uses the Nokogiri gem + Rexle gem to parse HTML documents.

Example

require 'nokorexi'

url = 'http://scottishrubyconference.com/'
buffer = open(url, 'UserAgent' => 'Nokorexi').read
doc = Nokorexi.new(buffer).to_doc

a = doc.xpath('//a/@href').take(5)
#=> ["/", "/tickets/", "/schedule/", "/news/", "http://2013.scottishrubyconference.com"]

nokorexi gem