golem 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +53 -2
- data/VERSION +1 -1
- data/golem.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,6 +1,57 @@
|
|
1
|
-
= golem - golem.de parser.
|
1
|
+
= golem - A golem.de parser.
|
2
|
+
|
3
|
+
== DESCRIPTION:
|
4
|
+
|
5
|
+
A simple library for looking up articles, related videos and related images on http://www.golem.de by using the api.golem.de webservice.
|
6
|
+
* http://github.com/daigoro/golem
|
7
|
+
|
8
|
+
== FEATURES:
|
9
|
+
|
10
|
+
* Fetching latest articles
|
11
|
+
* Fetching list of article images
|
12
|
+
* Fetching article meta data
|
13
|
+
* Fetching top articles
|
14
|
+
* Search articles
|
15
|
+
* Fetching latest videos
|
16
|
+
* Fetching video meta data
|
17
|
+
* Fetching top videos
|
18
|
+
|
19
|
+
== SYNOPSIS:
|
20
|
+
|
21
|
+
require 'rubygems'
|
22
|
+
require 'golem'
|
23
|
+
|
24
|
+
To search for articles:
|
25
|
+
|
26
|
+
g = Golem.new("your_developer_key")
|
27
|
+
articles = g.search_articles("google")
|
28
|
+
|
29
|
+
# Display all headlines after the search
|
30
|
+
|
31
|
+
articles["data"]["records"].each{|a| puts a["headline"] }
|
32
|
+
|
33
|
+
Display all top article headlines
|
34
|
+
|
35
|
+
g.top_articles["data"].each{|a| puts a["headline"] }
|
36
|
+
|
37
|
+
To learn more please take a look at the test script.
|
38
|
+
|
39
|
+
= REQUIREMENTS:
|
40
|
+
Following gem is needed:
|
41
|
+
* json_pure
|
42
|
+
|
43
|
+
== INSTALL:
|
44
|
+
Install and activate the gemcutter gem if needed
|
45
|
+
$ gem install gemcutter
|
46
|
+
$ gem tumble
|
47
|
+
|
48
|
+
To install the gem itself run
|
49
|
+
$ gem install golem
|
50
|
+
|
51
|
+
== TEST:
|
52
|
+
You can run all tests by using rake. Before you can run the tests, please create a file at "test/key" with a golem developer key.
|
2
53
|
|
3
54
|
== URLS:
|
4
55
|
|
56
|
+
http://github.com/daigoro/golem
|
5
57
|
http://api.golem.de/doc/reference.php
|
6
|
-
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/golem.gemspec
CHANGED