- 授权协议: MPL
- 开发语言: Ruby
- 操作系统: 跨平台
- 软件首页: https://github.com/YorickPeterse/oga
- 软件文档: http://code.yorickpeterse.com/oga/latest/
软件介绍
Oga 是一个 Ruby 的 XML/HTML 解析器。
示例代码1:
require 'oga'
require 'net/http'
body = Net::HTTP.get(URI.parse('http://www.reddit.com/'))
document = Oga.parse_html(body)
titles = document.xpath('//div[contains(@class, "entry")]/p[@class="title"]/a/text()')
titles.each do |title|
puts title.text
end示例代码2:
Oga.parse_xml('<people>foo</people>', :strict => true) # works fine
Oga.parse_xml('<people>foo', :strict => true) # throws an error
Numerical Recipes 3rd Edition
William H. Press、Saul A. Teukolsky、William T. Vetterling、Brian P. Flannery / Cambridge University Press / 2007-9-6 / GBP 64.99
Do you want easy access to the latest methods in scientific computing? This greatly expanded third edition of Numerical Recipes has it, with wider coverage than ever before, many new, expanded and upd......一起来看看 《Numerical Recipes 3rd Edition》 这本书的介绍吧!
