imdb_celebrity 0.0.2 → 0.0.3
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/History.txt +6 -0
- data/README.rdoc +20 -10
- data/imdb_celebrity-0.0.2.gem +0 -0
- data/imdb_celebrity.gemspec +2 -2
- metadata +5 -4
data/History.txt
CHANGED
data/README.rdoc
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
== DESCRIPTION:
|
|
6
6
|
|
|
7
|
-
* Imdb_celebrity is a ruby-gem which is used for scrapping celebrity pages from imdb.com . You can install imdb_celebrity as
|
|
7
|
+
* Imdb_celebrity is a ruby-gem which is used for scrapping celebrity pages from www.imdb.com . You can install imdb_celebrity as
|
|
8
8
|
gem install imdb_celebrity
|
|
9
|
-
With current initial release we can search a celebrity with name or we can fetch content for a celebrity with given IMDB id or/and name
|
|
9
|
+
With current initial release we can search a celebrity with name or we can fetch content for a celebrity with given IMDB id or/and name, by specifying which parser we want to use.
|
|
10
|
+
Right now we support Hpricot and Nokogiri as parser classes.
|
|
10
11
|
|
|
11
12
|
Usages:
|
|
12
13
|
require 'imdb_celebrity'
|
|
@@ -15,19 +16,28 @@
|
|
|
15
16
|
imdb_celebs = ImdbCelebrity::Search.new("Brad Pitt")
|
|
16
17
|
imdb_celebs.celebrities
|
|
17
18
|
# this will return array of celebrity objects.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
Also you can define the ParserClass which u wanna use [ right now you have choice of using either Nokogiri or Hpricot], as
|
|
20
|
+
imdb_celebs = ImdbCelebrity::Search.new("Brad Pitt", "NokogiriParser") #by default it will be HpricotParser
|
|
21
|
+
imdb_celebs.celebrities
|
|
22
|
+
|
|
23
|
+
** Fetching data for celebrity
|
|
24
|
+
celeb = ImdbCelebrity::Celebrity.new("0000093", "brad pitt") # give 7 digit imdbid number
|
|
25
|
+
celeb.parser
|
|
26
|
+
=> it will give you the type of parser class it using
|
|
27
|
+
celeb.public_methods(false)
|
|
28
|
+
=> will give you the public methods of ImdbCelebrity::Celebrity class only
|
|
29
|
+
celeb.to_s
|
|
30
|
+
=> will return an array of celebrity data items containing name, real_name, biography, nationality, height, url.
|
|
23
31
|
|
|
24
32
|
== REQUIREMENTS:
|
|
25
33
|
|
|
26
|
-
*
|
|
34
|
+
* Hpricot gem should be installed.
|
|
35
|
+
* Nokogiri gem should be installed.
|
|
36
|
+
|
|
27
37
|
|
|
28
38
|
== INSTALL:
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
gem install imdb_celebrity
|
|
40
|
+
you may need sudo permissions to install gem.
|
|
31
41
|
|
|
32
42
|
== LICENSE:
|
|
33
43
|
|
|
Binary file
|
data/imdb_celebrity.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = %q{imdb_celebrity}
|
|
3
|
-
s.version = "0.0.
|
|
4
|
-
s.date = %q{2010-10-
|
|
3
|
+
s.version = "0.0.3"
|
|
4
|
+
s.date = %q{2010-10-20}
|
|
5
5
|
s.authors = ["Sandeep Kumar"]
|
|
6
6
|
s.email = %q{sandeep@sapnasolutions.com}
|
|
7
7
|
s.summary = %q{Imdb_celebrity is a ruby-gem which is used to scrape celebrity pages from imdb.com}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: imdb_celebrity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sandeep Kumar
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-10-
|
|
18
|
+
date: 2010-10-20 00:00:00 +05:30
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -57,6 +57,7 @@ extra_rdoc_files: []
|
|
|
57
57
|
files:
|
|
58
58
|
- bin/imdb_celebrity
|
|
59
59
|
- History.txt
|
|
60
|
+
- imdb_celebrity-0.0.2.gem
|
|
60
61
|
- imdb_celebrity.gemspec
|
|
61
62
|
- lib/imdb_celebrity/celebrity.rb
|
|
62
63
|
- lib/imdb_celebrity/cli.rb
|