nyc-theater-discounts 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e346b2d740a743de12a3704569a493f9931ade6
|
4
|
+
data.tar.gz: 9dfeb12e212a766cfcfa1a4edf8c6eb2795608bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ecb85b7cbbf1edf82d90f56d2f44f49a7c5de43ede888aba01b587fed93f017ec39fe48de17de06eaa5931b919f4727742f9fa6c1b68978ddcaa4bbcf0101c
|
7
|
+
data.tar.gz: 6e38f9ce19fcd7f3d9aadf456c167ee92a86fd58e31438df4c39772cf3786441d10e1776ee590434c3692f3e61a080c95746af2d3fd0354c5faeb4c6397159e3
|
@@ -11,21 +11,19 @@ class NYCTheaterDiscounts::Scraper
|
|
11
11
|
|
12
12
|
todaytix = NYCTheaterDiscounts::Vendor.new("TodayTix", "http://www.todaytix.com/shows/nyc")
|
13
13
|
|
14
|
-
deals_page.css("div.
|
14
|
+
deals_page.css("div.I3zMcHNtRg div._21gi2wD4sz._1f5fyaMPhI.vn2NosAHjv._8jlYkaoq2i").each do |show|
|
15
15
|
|
16
|
-
title = show.css('.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
title = show.css('._3BMC9wgoBo').text
|
17
|
+
price = show.css('._3ZG8APBefO').text
|
18
|
+
step = show.css('a')
|
19
|
+
link = "http://www.todaytix.com" + step[0]['href']
|
20
|
+
|
21
|
+
|
22
|
+
if title.include?("The Public Theater") != true && title.include?("Weekend Getaway") != true && title.include?("Referral Program") != true && price.include?("$")
|
21
23
|
newshow = NYCTheaterDiscounts::Show.new(title, price, link)
|
22
24
|
newshow.vendors << todaytix
|
23
25
|
todaytix.shows << newshow
|
24
26
|
end
|
25
|
-
##div.shows_hero_container a.heroTile.grid
|
26
|
-
##href
|
27
|
-
##data-min-price **add $**
|
28
|
-
##header span.title
|
29
27
|
end
|
30
28
|
end
|
31
29
|
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nyc-theater-discounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaileigh McCrea
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,6 +122,8 @@ files:
|
|
122
122
|
- nyc-theater-discounts-0.1.0.gem
|
123
123
|
- nyc-theater-discounts-0.1.1.gem
|
124
124
|
- nyc-theater-discounts-0.1.2.gem
|
125
|
+
- nyc-theater-discounts-0.1.3.gem
|
126
|
+
- nyc-theater-discounts-0.1.4.gem
|
125
127
|
- nyc-theater-discounts.gemspec
|
126
128
|
homepage: https://github.com/kaileighrose/nyc-theater-discounts-cli-gem
|
127
129
|
licenses:
|