free-art-exhibits-cli-gem 0.4.0
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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/free-art-exhibits +5 -0
- data/bin/setup +8 -0
- data/free_art_exhibits.gemspec +31 -0
- data/lib/free_art_exhibits.rb +11 -0
- data/lib/free_art_exhibits/cli.rb +60 -0
- data/lib/free_art_exhibits/exhibit.rb +51 -0
- data/lib/free_art_exhibits/scraper.rb +27 -0
- data/lib/free_art_exhibits/version.rb +3 -0
- data/s(/"h3 a/").tex" +182 -0
- metadata +132 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: ca0df573da09e5c48efc632a4561aec8ebefac9f
|
|
4
|
+
data.tar.gz: 653b7fe5e805f9401a49a172b219f5f86cfadcaa
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: dcd2f39f17ac2ee72a12068f264dab07b1eb66c9ba42937275982f4a9ba2798ab65346f2adee12c23aa403841206d67fc4cb492d8c51eff35d230aca7315a894
|
|
7
|
+
data.tar.gz: e8a5f1d893c91203c74b783625ffdcc105646a3d724e86a61531dbe5dcbe9c559bece6cd2499631df1208531bdbc487e1411fa42d56766dcd577558c077b2926
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Prateek Vasireddy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# FreeArtExhibits
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/free_art_exhibits`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'free_art_exhibits'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install free_art_exhibits
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/free_art_exhibits.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "free_art_exhibits"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'free_art_exhibits/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "free-art-exhibits-cli-gem"
|
|
8
|
+
spec.version = FreeArtExhibits::VERSION
|
|
9
|
+
spec.authors = ["Prateek Vasireddy"]
|
|
10
|
+
spec.email = ["prat.vasireddy@gmail.com"]
|
|
11
|
+
|
|
12
|
+
spec.summary = %q{Exhibits NYC.}
|
|
13
|
+
spec.description = %q{Free art exhibits in NYC.}
|
|
14
|
+
spec.homepage = "http://rubygems.org/gems/free-art-exhibits-cli-gem"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
17
|
+
spec.bindir = "bin"
|
|
18
|
+
spec.executables = ['free-art-exhibits']
|
|
19
|
+
spec.require_paths = ["lib", "lib/free_art_exhibits"]
|
|
20
|
+
|
|
21
|
+
#spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
22
|
+
#spec.bindir = "exe"
|
|
23
|
+
#spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
|
+
#spec.require_paths = ["lib"]
|
|
25
|
+
|
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
29
|
+
spec.add_development_dependency "nokogiri", ">= 0"
|
|
30
|
+
spec.add_development_dependency "pry", ">= 0"
|
|
31
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require 'open-uri'
|
|
2
|
+
require 'pry'
|
|
3
|
+
require 'nokogiri'
|
|
4
|
+
|
|
5
|
+
require_relative "./free_art_exhibits/version"
|
|
6
|
+
require_relative "./free_art_exhibits/cli"
|
|
7
|
+
require_relative "./free_art_exhibits/exhibit"
|
|
8
|
+
require_relative "./free_art_exhibits/scraper"
|
|
9
|
+
|
|
10
|
+
module FreeArtExhibits
|
|
11
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
class FreeArtExhibits::CLI
|
|
2
|
+
def call
|
|
3
|
+
FreeArtExhibits::Scraper.new.make_exhibits
|
|
4
|
+
puts "Here are some free art exhibits according to Timeout New York"
|
|
5
|
+
start
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def start
|
|
9
|
+
puts "What exhibit number range would you like to see? Please enter 1 for 1-5 or 6 for 6-10"
|
|
10
|
+
input = gets.strip.to_i
|
|
11
|
+
print_exhibits(input)
|
|
12
|
+
|
|
13
|
+
puts "Which number exhibit would you like more info on?"
|
|
14
|
+
input = gets.strip.to_i
|
|
15
|
+
exhibit = FreeArtExhibits::Exhibit.find(input)
|
|
16
|
+
print_exhibit(exhibit)
|
|
17
|
+
puts ""
|
|
18
|
+
|
|
19
|
+
puts "Would you like to see another exhibit? Enter Y or N"
|
|
20
|
+
|
|
21
|
+
input = gets.strip.downcase
|
|
22
|
+
if input == "y"
|
|
23
|
+
start
|
|
24
|
+
else
|
|
25
|
+
puts ""
|
|
26
|
+
puts "Thankyou! Have a great day!"
|
|
27
|
+
exit
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def print_exhibit(exhibit)
|
|
32
|
+
puts ""
|
|
33
|
+
puts "----------- #{exhibit.title}"
|
|
34
|
+
puts ""
|
|
35
|
+
puts "Description: #{exhibit.description}"
|
|
36
|
+
puts ""
|
|
37
|
+
puts ""
|
|
38
|
+
puts "Website: #{exhibit.url}"
|
|
39
|
+
puts ""
|
|
40
|
+
puts ""
|
|
41
|
+
puts ""
|
|
42
|
+
puts ""
|
|
43
|
+
puts "Venue: #{exhibit.venue_name}"
|
|
44
|
+
puts ""
|
|
45
|
+
puts ""
|
|
46
|
+
puts "Address: #{exhibit.address}"
|
|
47
|
+
puts ""
|
|
48
|
+
puts ""
|
|
49
|
+
puts "Opening Hours: #{exhibit.opening_hours}"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def print_exhibits(from_number)
|
|
53
|
+
puts ""
|
|
54
|
+
puts "---------- Exhibits #{from_number} - #{from_number+4} ----------"
|
|
55
|
+
puts ""
|
|
56
|
+
FreeArtExhibits::Exhibit.all[from_number-1, 5].each.with_index(from_number) do |exhibit, index|
|
|
57
|
+
puts "#{index}. #{exhibit.title} - #{exhibit.url}"
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
require 'pry'
|
|
2
|
+
|
|
3
|
+
class FreeArtExhibits::Exhibit
|
|
4
|
+
attr_accessor :url,:title, :description
|
|
5
|
+
@@all = []
|
|
6
|
+
|
|
7
|
+
def self.new_from_index_page(exhibit)
|
|
8
|
+
self.new(
|
|
9
|
+
"http://www.timeout.com" + exhibit.css("a.read-more").attr("href").value + "#tab_panel_2",
|
|
10
|
+
exhibit.css("h3 a").text,
|
|
11
|
+
exhibit.css("p.feature_item__annotation--truncated").text
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def initialize(url, title, description)
|
|
16
|
+
@url = url
|
|
17
|
+
@title = title
|
|
18
|
+
@description = description
|
|
19
|
+
@@all << self
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.all
|
|
23
|
+
@@all
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.find(id)
|
|
27
|
+
self.all[id-1]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def venue_name
|
|
31
|
+
self.details_page.css("td a").first.text
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def opening_hours
|
|
35
|
+
self.details_page.css("tbody td").select do |cell|
|
|
36
|
+
cell.text if cell.text.include?("pm") || cell.text.include?("am")
|
|
37
|
+
end.first
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def address
|
|
41
|
+
string = "\n"
|
|
42
|
+
self.details_page.css("tr td").select do |cell|
|
|
43
|
+
cell.text + string + cell.css("br").first.text if cell.text.include?("<br>")
|
|
44
|
+
end.first
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def details_page
|
|
48
|
+
@details_page ||= Nokogiri::HTML(open(self.url))
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require 'pry'
|
|
2
|
+
require 'nokogiri'
|
|
3
|
+
require 'open-uri'
|
|
4
|
+
#require_relative 'exhibit.rb'
|
|
5
|
+
|
|
6
|
+
class FreeArtExhibits::Scraper
|
|
7
|
+
def get_page
|
|
8
|
+
Nokogiri::HTML(open("http://www.timeout.com/newyork/art/the-best-free-art-exhibitions-in-nyc"))
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def scrape_index_page
|
|
12
|
+
page = get_page.css("article.feature-item")
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def make_exhibits
|
|
16
|
+
scrape_index_page.each do |exhibit|
|
|
17
|
+
e = FreeArtExhibits::Exhibit.new_from_index_page(exhibit)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
#First, iterate through the #scrape_index_page method
|
|
22
|
+
#link for venue details: "http://www.timeout.com" + card.css("a.read-more").attr("href").value + "#tab_panel_2"
|
|
23
|
+
#title and subtitle: card.css("h3 a").text
|
|
24
|
+
#description: card.css("p.feature_item__annotation--truncated")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
#Scraper.new.make_exhibits
|
data/s(/"h3 a/").tex"
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
=> [1;34m#(Element:0x13ca590 {[0m
|
|
2
|
+
name = [31m[1;31m"[0m[31marticle[1;31m"[0m[31m[0m,
|
|
3
|
+
attributes = [ [1;34m#(Attr:0x13ca48c {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mfeature-item category_3 no_count [1;31m"[0m[31m[0m })],
|
|
4
|
+
children = [
|
|
5
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
6
|
+
[1;34m#(Element:0x13c5d38 {[0m
|
|
7
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
8
|
+
attributes = [ [1;34m#(Attr:0x13c5c98 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mfeature-item__content[1;31m"[0m[31m[0m })],
|
|
9
|
+
children = [
|
|
10
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;35m\n[0m[31m [1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
11
|
+
[1;34m#(Element:0x13c5270 {[0m
|
|
12
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
13
|
+
attributes = [ [1;34m#(Attr:0x13c5180 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mrow[1;31m"[0m[31m[0m })],
|
|
14
|
+
children = [
|
|
15
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
16
|
+
[1;34m#(Element:0x13c4820 {[0m
|
|
17
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
18
|
+
attributes = [
|
|
19
|
+
[1;34m#(Attr:0x13c4794 {[0m
|
|
20
|
+
name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m,
|
|
21
|
+
value = [31m[1;31m"[0m[31mfeature-item__column feature-item__column--image[1;31m"[0m[31m[0m
|
|
22
|
+
})],
|
|
23
|
+
children = [
|
|
24
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
25
|
+
[1;34m#(Element:0x13c4014 {[0m
|
|
26
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
27
|
+
attributes = [
|
|
28
|
+
[1;34m#(Attr:0x13c3f88 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mfeature-item__wrapper[1;31m"[0m[31m[0m })],
|
|
29
|
+
children = [
|
|
30
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
31
|
+
[1;34m#(Element:0x13c38e4 {[0m
|
|
32
|
+
name = [31m[1;31m"[0m[31ma[1;31m"[0m[31m[0m,
|
|
33
|
+
attributes = [
|
|
34
|
+
[1;34m#(Attr:0x13c3844 {[0m
|
|
35
|
+
name = [31m[1;31m"[0m[31mhref[1;31m"[0m[31m[0m,
|
|
36
|
+
value = [31m[1;31m"[0m[31m/newyork/art/blake-rayne-these-pellets-here-this-powder-there[1;31m"[0m[31m[0m
|
|
37
|
+
}),
|
|
38
|
+
[1;34m#(Attr:0x13c381c {[0m name = [31m[1;31m"[0m[31mtarget[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31m_self[1;31m"[0m[31m[0m })],
|
|
39
|
+
children = [
|
|
40
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
41
|
+
[1;34m#(Element:0x13c2ee4 {[0m
|
|
42
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
43
|
+
attributes = [
|
|
44
|
+
[1;34m#(Attr:0x13c2e6c {[0m
|
|
45
|
+
name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m,
|
|
46
|
+
value = [31m[1;31m"[0m[31mimage_wrapper aspect-ratio-4-3[1;31m"[0m[31m[0m
|
|
47
|
+
})],
|
|
48
|
+
children = [
|
|
49
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
50
|
+
[1;34m#(Element:0x13c27f0 {[0m
|
|
51
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
52
|
+
attributes = [
|
|
53
|
+
[1;34m#(Attr:0x13c26c4 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mdelayed-image-load[1;31m"[0m[31m[0m }),
|
|
54
|
+
[1;34m#(Attr:0x13c26b0 {[0m
|
|
55
|
+
name = [31m[1;31m"[0m[31mdata-class[1;31m"[0m[31m[0m,
|
|
56
|
+
value = [31m[1;31m"[0m[31mimager tile__image[1;31m"[0m[31m[0m
|
|
57
|
+
}),
|
|
58
|
+
[1;34m#(Attr:0x13c269c {[0m
|
|
59
|
+
name = [31m[1;31m"[0m[31mdata-imagesrc[1;31m"[0m[31m[0m,
|
|
60
|
+
value = [31m[1;31m"[0m[31mhttps://media.timeout.com/images/103348075/{width}/{height}/image.jpg[1;31m"[0m[31m[0m
|
|
61
|
+
}),
|
|
62
|
+
[1;34m#(Attr:0x13c2688 {[0m
|
|
63
|
+
name = [31m[1;31m"[0m[31mdata-title[1;31m"[0m[31m[0m,
|
|
64
|
+
value = [31m[1;31m"[0m[31mBlake Rayne, “These Pellets Here This Powder There”[1;31m"[0m[31m[0m
|
|
65
|
+
}),
|
|
66
|
+
[1;34m#(Attr:0x13c2660 {[0m
|
|
67
|
+
name = [31m[1;31m"[0m[31mdata-alt[1;31m"[0m[31m[0m,
|
|
68
|
+
value = [31m[1;31m"[0m[31mBlake Rayne, “These Pellets Here This Powder There”[1;31m"[0m[31m[0m
|
|
69
|
+
})],
|
|
70
|
+
children = [
|
|
71
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
72
|
+
[1;34m#(Element:0x13bf1cc {[0m
|
|
73
|
+
name = [31m[1;31m"[0m[31mnoscript[1;31m"[0m[31m[0m,
|
|
74
|
+
children = [
|
|
75
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
76
|
+
[1;34m#(Element:0x13bee34 {[0m
|
|
77
|
+
name = [31m[1;31m"[0m[31mimg[1;31m"[0m[31m[0m,
|
|
78
|
+
attributes = [
|
|
79
|
+
[1;34m#(Attr:0x13beda8 {[0m
|
|
80
|
+
name = [31m[1;31m"[0m[31msrc[1;31m"[0m[31m[0m,
|
|
81
|
+
value = [31m[1;31m"[0m[31mhttps://media.timeout.com/images/103348075/image.jpg[1;31m"[0m[31m[0m
|
|
82
|
+
}),
|
|
83
|
+
[1;34m#(Attr:0x13bed94 {[0m
|
|
84
|
+
name = [31m[1;31m"[0m[31malt[1;31m"[0m[31m[0m,
|
|
85
|
+
value = [31m[1;31m"[0m[31mBlake Rayne, “These Pellets Here This Powder There”[1;31m"[0m[31m[0m
|
|
86
|
+
}),
|
|
87
|
+
[1;34m#(Attr:0x13bed80 {[0m
|
|
88
|
+
name = [31m[1;31m"[0m[31mtitle[1;31m"[0m[31m[0m,
|
|
89
|
+
value = [31m[1;31m"[0m[31mBlake Rayne, “These Pellets Here This Powder There”[1;31m"[0m[31m[0m
|
|
90
|
+
})]
|
|
91
|
+
}),
|
|
92
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
93
|
+
}),
|
|
94
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
95
|
+
}),
|
|
96
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
97
|
+
}),
|
|
98
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
99
|
+
}),
|
|
100
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
101
|
+
}),
|
|
102
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
103
|
+
}),
|
|
104
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
105
|
+
[1;34m#(Element:0x13bd2f0 {[0m
|
|
106
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
107
|
+
attributes = [ [1;34m#(Attr:0x13bd250 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mfeature-item__column[1;31m"[0m[31m[0m })],
|
|
108
|
+
children = [
|
|
109
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
110
|
+
[1;34m#(Element:0x13bcaf8 {[0m
|
|
111
|
+
name = [31m[1;31m"[0m[31mh3[1;31m"[0m[31m[0m,
|
|
112
|
+
children = [
|
|
113
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
114
|
+
[1;34m#(Element:0x13bc79c {[0m
|
|
115
|
+
name = [31m[1;31m"[0m[31ma[1;31m"[0m[31m[0m,
|
|
116
|
+
attributes = [
|
|
117
|
+
[1;34m#(Attr:0x13bc6c0 {[0m
|
|
118
|
+
name = [31m[1;31m"[0m[31mdata-tracking[1;31m"[0m[31m[0m,
|
|
119
|
+
value = [31m[1;31m"[0m[31m{[1;35m\"[0m[31meventInfo[1;35m\"[0m[31m:{[1;35m\"[0m[31meventName[1;35m\"[0m[31m:[1;35m\"[0m[31mfeature sections (zones) clicks[1;35m\"[0m[31m,[1;35m\"[0m[31meventAction[1;35m\"[0m[31m:[1;35m\"[0m[31mfeature_sections_(zones)[1;35m\"[0m[31m,[1;35m\"[0m[31mtype[1;35m\"[0m[31m:[1;35m\"[0m[31mcustom[1;35m\"[0m[31m},[1;35m\"[0m[31mattributes[1;35m\"[0m[31m:{[1;35m\"[0m[31mcontentName[1;35m\"[0m[31m:[1;35m\"[0m[31mBlake Rayne, [1;35m\\[0m[31mu201cThese Pellets Here This Powder There[1;35m\\[0m[31mu201d[1;35m\"[0m[31m,[1;35m\"[0m[31mcontentType[1;35m\"[0m[31m:[1;35m\"[0m[31mevent[1;35m\"[0m[31m,[1;35m\"[0m[31mcontentID[1;35m\"[0m[31m:[1;35m\"[0m[31mContent-Event-1487721[1;35m\"[0m[31m,[1;35m\"[0m[31mcontentPrimaryCategory[1;35m\"[0m[31m:[1;35m\"[0m[31mart (category)[1;35m\"[0m[31m,[1;35m\"[0m[31msubCategory1[1;35m\"[0m[31m:[1;35m\"[0m[31mcontemporary art[1;35m\"[0m[31m,[1;35m\"[0m[31mcontentIsSponsored[1;35m\"[0m[31m:false,[1;35m\"[0m[31mcontentPosition[1;35m\"[0m[31m:[1;35m\"[0m[31mBest free art exhibitions in NYC[1;35m\"[0m[31m}}[1;31m"[0m[31m[0m
|
|
120
|
+
}),
|
|
121
|
+
[1;34m#(Attr:0x13bc698 {[0m
|
|
122
|
+
name = [31m[1;31m"[0m[31mhref[1;31m"[0m[31m[0m,
|
|
123
|
+
value = [31m[1;31m"[0m[31m/newyork/art/blake-rayne-these-pellets-here-this-powder-there[1;31m"[0m[31m[0m
|
|
124
|
+
}),
|
|
125
|
+
[1;34m#(Attr:0x13bc684 {[0m name = [31m[1;31m"[0m[31mtarget[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31m_self[1;31m"[0m[31m[0m })],
|
|
126
|
+
children = [ [1;34m#(Text [0m[31m[1;31m"[0m[31mBlake Rayne, “These Pellets Here This Powder There”[1;31m"[0m[31m[0m)]
|
|
127
|
+
}),
|
|
128
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
129
|
+
}),
|
|
130
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;35m\n[0m[31m [1;35m\n[0m[31m [1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
131
|
+
[1;34m#(Element:0x13b93a8 {[0m
|
|
132
|
+
name = [31m[1;31m"[0m[31mp[1;31m"[0m[31m[0m,
|
|
133
|
+
attributes = [
|
|
134
|
+
[1;34m#(Attr:0x13b92f4 {[0m
|
|
135
|
+
name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m,
|
|
136
|
+
value = [31m[1;31m"[0m[31mfeature_item__annotation--truncated[1;31m"[0m[31m[0m
|
|
137
|
+
})],
|
|
138
|
+
children = [
|
|
139
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m Blake Rayne’s show ranges across a variety of mediums and processes in its quest for the continued utility of painting as a discipline. A low-key challenge to art’s ingrained expectations around representation and reflection, the work here is connected in ways that are sometimes hermetic and sometimes playful.[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
140
|
+
}),
|
|
141
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;35m\n[0m[31m [1;35m\t[0m[31m[1;35m\t[0m[31m[1;35m\t[0m[31m [1;35m\t[0m[31m[1;35m\t[0m[31m[1;35m\t[0m[31m[1;35m\t[0m[31m[1;31m"[0m[31m[0m),
|
|
142
|
+
[1;34m#(Element:0x13b8ac0 {[0m
|
|
143
|
+
name = [31m[1;31m"[0m[31ma[1;31m"[0m[31m[0m,
|
|
144
|
+
attributes = [
|
|
145
|
+
[1;34m#(Attr:0x13b89bc {[0m
|
|
146
|
+
name = [31m[1;31m"[0m[31mhref[1;31m"[0m[31m[0m,
|
|
147
|
+
value = [31m[1;31m"[0m[31m/newyork/art/blake-rayne-these-pellets-here-this-powder-there[1;31m"[0m[31m[0m
|
|
148
|
+
}),
|
|
149
|
+
[1;34m#(Attr:0x13b89a8 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mread-more[1;31m"[0m[31m[0m }),
|
|
150
|
+
[1;34m#(Attr:0x13b8958 {[0m name = [31m[1;31m"[0m[31mtarget[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31m_self[1;31m"[0m[31m[0m })],
|
|
151
|
+
children = [ [1;34m#(Text [0m[31m[1;31m"[0m[31mRead more[1;31m"[0m[31m[0m)]
|
|
152
|
+
}),
|
|
153
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;35m\t[0m[31m[1;35m\t[0m[31m[1;35m\t[0m[31m [1;35m\t[0m[31m [1;31m"[0m[31m[0m)]
|
|
154
|
+
}),
|
|
155
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
156
|
+
}),
|
|
157
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m)]
|
|
158
|
+
}),
|
|
159
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m [1;31m"[0m[31m[0m),
|
|
160
|
+
[1;34m#(Element:0x13b4fc4 {[0m
|
|
161
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
162
|
+
attributes = [ [1;34m#(Attr:0x13b4f24 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mlisting_meta_controls[1;31m"[0m[31m[0m })],
|
|
163
|
+
children = [
|
|
164
|
+
[1;34m#(Element:0x13b4844 {[0m
|
|
165
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
166
|
+
attributes = [ [1;34m#(Attr:0x13b47cc {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mlistings_flags_bar[1;31m"[0m[31m[0m })],
|
|
167
|
+
children = [
|
|
168
|
+
[1;34m#(Element:0x13b427c {[0m
|
|
169
|
+
name = [31m[1;31m"[0m[31mdiv[1;31m"[0m[31m[0m,
|
|
170
|
+
attributes = [ [1;34m#(Attr:0x13b4218 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mlistings_flags[1;31m"[0m[31m[0m })],
|
|
171
|
+
children = [
|
|
172
|
+
[1;34m#(Element:0x13b3d40 {[0m
|
|
173
|
+
name = [31m[1;31m"[0m[31mspan[1;31m"[0m[31m[0m,
|
|
174
|
+
attributes = [
|
|
175
|
+
[1;34m#(Attr:0x13b3c78 {[0m name = [31m[1;31m"[0m[31mclass[1;31m"[0m[31m[0m, value = [31m[1;31m"[0m[31mlistings_flag icon icon_calendar[1;31m"[0m[31m[0m })],
|
|
176
|
+
children = [ [1;34m#(Text [0m[31m[1;31m"[0m[31m[1;35m\n[0m[31m Until Sun Jun 19[1;35m\n[0m[31m[1;31m"[0m[31m[0m)]
|
|
177
|
+
})]
|
|
178
|
+
})]
|
|
179
|
+
})]
|
|
180
|
+
}),
|
|
181
|
+
[1;34m#(Text [0m[31m[1;31m"[0m[31m [1;31m"[0m[31m[0m)]
|
|
182
|
+
})
|
metadata
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: free-art-exhibits-cli-gem
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.4.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Prateek Vasireddy
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.12'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.12'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: nokogiri
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: pry
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
description: Free art exhibits in NYC.
|
|
84
|
+
email:
|
|
85
|
+
- prat.vasireddy@gmail.com
|
|
86
|
+
executables:
|
|
87
|
+
- free-art-exhibits
|
|
88
|
+
extensions: []
|
|
89
|
+
extra_rdoc_files: []
|
|
90
|
+
files:
|
|
91
|
+
- ".gitignore"
|
|
92
|
+
- ".travis.yml"
|
|
93
|
+
- Gemfile
|
|
94
|
+
- LICENSE.txt
|
|
95
|
+
- README.md
|
|
96
|
+
- Rakefile
|
|
97
|
+
- bin/console
|
|
98
|
+
- bin/free-art-exhibits
|
|
99
|
+
- bin/setup
|
|
100
|
+
- free_art_exhibits.gemspec
|
|
101
|
+
- lib/free_art_exhibits.rb
|
|
102
|
+
- lib/free_art_exhibits/cli.rb
|
|
103
|
+
- lib/free_art_exhibits/exhibit.rb
|
|
104
|
+
- lib/free_art_exhibits/scraper.rb
|
|
105
|
+
- lib/free_art_exhibits/version.rb
|
|
106
|
+
- s("h3 a").tex
|
|
107
|
+
homepage: http://rubygems.org/gems/free-art-exhibits-cli-gem
|
|
108
|
+
licenses:
|
|
109
|
+
- MIT
|
|
110
|
+
metadata: {}
|
|
111
|
+
post_install_message:
|
|
112
|
+
rdoc_options: []
|
|
113
|
+
require_paths:
|
|
114
|
+
- lib
|
|
115
|
+
- lib/free_art_exhibits
|
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
|
+
requirements:
|
|
118
|
+
- - ">="
|
|
119
|
+
- !ruby/object:Gem::Version
|
|
120
|
+
version: '0'
|
|
121
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - ">="
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0'
|
|
126
|
+
requirements: []
|
|
127
|
+
rubyforge_project:
|
|
128
|
+
rubygems_version: 2.5.1
|
|
129
|
+
signing_key:
|
|
130
|
+
specification_version: 4
|
|
131
|
+
summary: Exhibits NYC.
|
|
132
|
+
test_files: []
|