Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 107 lines (75 sloc) 3.103 kB
801e7ce @tenderlove starting japanese documentation
tenderlove authored
1 = Nokogiri (鋸)
2
2a93976 @tenderlove updating the mailing list url
tenderlove authored
3 * http://nokogiri.org/
fabaff5 @tenderlove bumping version, adding more urls
tenderlove authored
4 * http://github.com/tenderlove/nokogiri/wikis
801e7ce @tenderlove starting japanese documentation
tenderlove authored
5 * http://github.com/tenderlove/nokogiri/tree/master
50376b7 @tenderlove updating japanese readme
tenderlove authored
6 * http://groups.google.com/group/nokogiri-list
1dccd37 @tenderlove updating bug tracker url
tenderlove authored
7 * http://github.com/tenderlove/nokogiri/issues
801e7ce @tenderlove starting japanese documentation
tenderlove authored
8
fde7b28 @tenderlove updating japanese docs
tenderlove authored
9 == DESCRIPTION:
801e7ce @tenderlove starting japanese documentation
tenderlove authored
10
92b5d8f @ujihisa Natural Japanese
ujihisa authored
11 Nokogiri はHTMLとXMLとSAXとXSLTとReaderのパーサーです。とりわけ重要な特徴は、
12 ドキュメントをXPathやCSS3セレクター経由で探索する機能を持つことです。
64bbe74 @tenderlove updating readme and changelog
tenderlove authored
13
14 XMLは暴力に似ている - XMLが君の問題を解決しないとしたら、君はXMLを十分に
a92fd4b @tenderlove updating japanese readme
tenderlove authored
15 使いこなしていない事になる。
801e7ce @tenderlove starting japanese documentation
tenderlove authored
16
17 == FEATURES:
18
973b714 @ujihisa Natural Japanese
ujihisa authored
19 * XPath による探索
20 * CSS3 のセレクターによる探索
21 * XML/HTMLのビルダー
fde7b28 @tenderlove updating japanese docs
tenderlove authored
22
973b714 @ujihisa Natural Japanese
ujihisa authored
23 XML/HTMLの高速な解析と探索検索、ならびにCSS3セレクタとXPathをサポートしています。
221793e @tenderlove adding link to benchmark
tenderlove authored
24
de4e7dd @tenderlove 日本語の README を最新のものにする
tenderlove authored
25 == SUPPORT:
26
17df261 @tenderlove adding the japanese mailing list to the rdoc
tenderlove authored
27 日本語でNokogiriの
28 {メーリングリスト}[http://groups.google.com/group/nokogiri-list]
de4e7dd @tenderlove 日本語の README を最新のものにする
tenderlove authored
29
17df261 @tenderlove adding the japanese mailing list to the rdoc
tenderlove authored
30 * http://groups.google.com/group/nokogiri-list
de4e7dd @tenderlove 日本語の README を最新のものにする
tenderlove authored
31
17df261 @tenderlove adding the japanese mailing list to the rdoc
tenderlove authored
32 {バグ報告}[http://github.com/tenderlove/nokogiri/issues]
de4e7dd @tenderlove 日本語の README を最新のものにする
tenderlove authored
33
1dccd37 @tenderlove updating bug tracker url
tenderlove authored
34 * http://github.com/tenderlove/nokogiri/issues
de4e7dd @tenderlove 日本語の README を最新のものにする
tenderlove authored
35
fc4a8bc @ujihisa Natural Japanese
ujihisa authored
36 IRCのチャンネルはfreenodeの #nokogiri です。
3cc3e29 @flavorjones Updated README with IRC channel information. My Japanese is only as g…
flavorjones authored
37
8a593ae @tenderlove updating japanese readme
tenderlove authored
38 == SYNOPSIS:
39
40 require 'nokogiri'
41 require 'open-uri'
42
43 doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))
44
45 ####
46 # Search for nodes by css
47 doc.css('h3.r a.l').each do |link|
48 puts link.content
49 end
50
51 ####
52 # Search for nodes by xpath
53 doc.xpath('//h3/a[@class="l"]').each do |link|
54 puts link.content
55 end
56
57 ####
58 # Or mix and match.
59 doc.search('h3.r a.l', '//h3/a[@class="l"]').each do |link|
60 puts link.content
61 end
62
63
64 == REQUIREMENTS:
65
66 * ruby 1.8 or 1.9
2af1774 @webmat List dependencies a little more accurately
webmat authored
67 * libxml2
68 * libxml2-dev
061b157 @tenderlove more readme updates
tenderlove authored
69 * libxslt
2af1774 @webmat List dependencies a little more accurately
webmat authored
70 * libxslt-dev
8a593ae @tenderlove updating japanese readme
tenderlove authored
71
72 == INSTALL:
73
74 * sudo gem install nokogiri
75
76 == LICENSE:
77
78 (The MIT License)
79
911a9ff @tenderlove annual year bump
tenderlove authored
80 Copyright (c) 2008 - 2010:
8a593ae @tenderlove updating japanese readme
tenderlove authored
81
82 * {Aaron Patterson}[http://tenderlovemaking.com]
219b0e5 @flavorjones added personal site url to 'README's
flavorjones authored
83 * {Mike Dalessio}[http://mike.daless.io]
8ce3991 @yokolet Adds a license header to all Java files and names to two READMEs.
yokolet authored
84 * {Charles Nutter}[http://blog.headius.com]
85 * {Sergio Arbeo}[http://www.serabe.com]
86 * {Patrick Mahoney}[http://polycrystal.org]
87 * {Yoko Harada}[http://yokolet.blogspot.com]
8a593ae @tenderlove updating japanese readme
tenderlove authored
88
89 Permission is hereby granted, free of charge, to any person obtaining
90 a copy of this software and associated documentation files (the
91 'Software'), to deal in the Software without restriction, including
92 without limitation the rights to use, copy, modify, merge, publish,
93 distribute, sublicense, and/or sell copies of the Software, and to
94 permit persons to whom the Software is furnished to do so, subject to
95 the following conditions:
96
97 The above copyright notice and this permission notice shall be
98 included in all copies or substantial portions of the Software.
99
100 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
101 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
102 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
103 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
104 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
105 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
106 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.