- 授权协议: 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
Rationality for Mortals
Gerd Gigerenzer / Oxford University Press, USA / 2008-05-02 / USD 65.00
Gerd Gigerenzer's influential work examines the rationality of individuals not from the perspective of logic or probability, but from the point of view of adaptation to the real world of human behavio......一起来看看 《Rationality for Mortals》 这本书的介绍吧!
html转js在线工具
html转js在线工具
UNIX 时间戳转换
UNIX 时间戳转换
