Ruby 请问 ruby 怎么读取和解析 html 文件呢?

Leron · April 14, 2012 · Last by ltl3884 replied at April 16, 2012 · 6717 hits

请问还有 ruby 的 API 吗?中文版的最好,:-),谢谢!

Nokogiri (鋸) is an HTML, XML, SAX, 以及 Reader 解析器。

Ruby API 1.9.3 core (英文版)

thank you...

中文的貌似木有,目前用的最多的好像是 nokogiri 和 hpricot。 nokogiri 速度比 hpricot 快点

nokogiri 不错 是用 C 的 好像得装 libxml 这个包

You need to Sign in before reply, if you don't have an account, please Sign up first.