-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
73 lines (47 loc) · 2.05 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
= cine-passion
* http://github.com/nledez/ruby-scraper-cine-passion
* http://rubyforge.org/projects/cine-passion/
== DESCRIPTION:
Cine Passion is a powerfull movies scraper.
This lib allow you to get information about a movie in Ruby without manipulating XML.
If you want try scraper online :
http://passion-xbmc.org/scraper/
If you have any question about this scraper you have a forum :
http://passion-xbmc.org/scraper-cine-passion-support-francais/
== FEATURES/PROBLEMS:
* Extract XML information to build ruby objects
* Does not work actualy for images
== SYNOPSIS:
require 'cine_passion'
@scrap = CinePassion.new("my-real-api-key")
@scrap.MovieSearch("Home")
#=> Return you a movies list
@scrap.movies_info
#=> All info are here
== REQUIREMENTS:
In my project, you can't find Cine Passion API Key.
In fact you need a key your own side, you can request one here :
http://passion-xbmc.org/demande-clef-api-api-key-request/
See INSTALL & SYNOPSIS
== INSTALL:
* gem install cine-passion
== DEVELOPERS:
After checking out the source, run:
$ rake newb
This task will install any missing dependencies, run the tests/specs,
and generate the RDoc.
* XML Sample files
To start devel on my project I made sample files. You can found them on test/data folder. At this time I have theres :
cinepassion-scraper-test-00-no-response.xml -> No response from scraper
cinepassion-scraper-test-01-one-response.xml -> One result from scraper
cinepassion-scraper-test-02-mutiple-response.xml -> Many result from scraper
In "exploded" directory, I have "translate" files in human readable format (only with indentation ;) ). Do not use there files.
* Demo mode
By default if you not create a lib/cine_passion_config.rb you are in demo mode :
- Query: "noresult" => Return cinepassion-scraper-test-00-no-response.xml
- Query: "Home" => Return cinepassion-scraper-test-01-one-response.xml
- Query: "The Men Who Stare At Goats" => Return cinepassion-scraper-test-02-mutiple-response.xml
- Other query => Random result of above
== LICENSE:
Ruby Licence:
http://www.ruby-lang.org/en/LICENSE.txt