google_movies47 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google_movies47/parser.rb +4 -4
- data/lib/google_movies47/version.rb +1 -1
- metadata +1 -1
@@ -11,8 +11,10 @@ module GoogleMovies47
|
|
11
11
|
@language = language
|
12
12
|
@language_parser = GoogleMovies47::LanguageParser.new(language)
|
13
13
|
@genre_parser = GoogleMovies47::GenreParser.new(language)
|
14
|
-
|
15
|
-
|
14
|
+
#@theaters = Hash.new
|
15
|
+
#@movies = Hash.new
|
16
|
+
@theaters = []
|
17
|
+
@movies = []
|
16
18
|
end
|
17
19
|
|
18
20
|
def parse_show_times(doc)
|
@@ -20,12 +22,10 @@ module GoogleMovies47
|
|
20
22
|
"//div[@class='movie_results']/div[@class='theater' and .//h2/a]"
|
21
23
|
)
|
22
24
|
|
23
|
-
@theaters = []
|
24
25
|
theater_elements.each do |t|
|
25
26
|
theater_name = t.search(".//h2[@class='name']/a/text()").text
|
26
27
|
theater_info = t.search(".//div[@class='info']/text()").text
|
27
28
|
showtimes = []
|
28
|
-
@movies = []
|
29
29
|
movie_elements = t.search(".//div[@class='showtimes']//div[@class='movie']")
|
30
30
|
x = 0
|
31
31
|
movie_elements.each do |m|
|