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: dd14b1084c03342f00e9954106fc475aa44442a7
4
- data.tar.gz: 6febeb9762afbab1d47fd56139f738d7929e2e23
3
+ metadata.gz: 7e346b2d740a743de12a3704569a493f9931ade6
4
+ data.tar.gz: 9dfeb12e212a766cfcfa1a4edf8c6eb2795608bc
5
5
  SHA512:
6
- metadata.gz: 866d7e43c16afb86ce6180a756bc8a0e1860b35f596e273e4f26248cb0d166e39eb7d414e131cf85c58a8ec86e44d0a0d1cf66d388aa8885f1fa5cb21a818428
7
- data.tar.gz: 84e49f11cba6389cb2e6badfbbad166a7581c0e1a464ba7ebeb66cbe1c3de44297d5f41de4a44d9d3d8a448b6ac5e2396cb97c61ce9e95b2b7cb63d2e1260884
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.shows-list__showContainer___6xuFJ div.grid__row___I3zMc a.hero-grid__showCell___21gi2").each do |show|
14
+ deals_page.css("div.I3zMcHNtRg div._21gi2wD4sz._1f5fyaMPhI.vn2NosAHjv._8jlYkaoq2i").each do |show|
15
15
 
16
- title = show.css('.hero-info-title__title___3BMC9').text
17
- link = "http://www.todaytix.com" + show['href']
18
- price = show.css('.hero-info-action__price___3ZG8A').text
19
-
20
- if title.include?("Referral Program") != true && title.include?("Gift Cards") != true
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
 
@@ -1,3 +1,3 @@
1
1
  module NYCTheaterDiscounts
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-04 00:00:00.000000000 Z
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: