bpt_scraper 0.1.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 +16 -0
- data/.rspec +2 -0
- data/.rubocop.yml +11 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +101 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +9 -0
- data/bpt_scraper.gemspec +31 -0
- data/lib/bpt_scraper.rb +11 -0
- data/lib/bpt_scraper/helpers.rb +22 -0
- data/lib/bpt_scraper/login.rb +61 -0
- data/lib/bpt_scraper/pull_feed.rb +104 -0
- data/lib/bpt_scraper/version.rb +3 -0
- metadata +159 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2853bd3aee52c47391eb9c1ca53ef7f54b54e0a2
|
4
|
+
data.tar.gz: 5181100de11dc79f1cff0b56a9311ce0f501ff9b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bbb8822b02396c56d2da3323c6453611c3dcd02fdaaec44de24cb6e37aef23a8089b0eec81e22c7513f588366ddb7fc0eff593ffa434c10ec85f5ae13c4bf105
|
7
|
+
data.tar.gz: 85202839f96600697be1358c7521aede0e379b416eec06cbab28fac1a16439f236beaf440618c1303fa5d01b23d25cc70f092948818086446ae50dd31555e395
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at joshuabartlett@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Joshua Bartlett
|
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,101 @@
|
|
1
|
+
# BrownPaperTickets Scraper/API Wrapper
|
2
|
+
|
3
|
+
This is a simple wrapper to make interacting with BrownPaperTicket's API much easier. Additionally, scraper utilities, such as creating a session via signing in for interacting with the non-API-accessible portions of the site.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'bpt_scraper'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install bpt_scraper
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
To use the API wrapper, start by configuring the `PullFeed` class:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
BptScraper::PullFeed.developer_id = your_developer_id
|
27
|
+
# and optionally set client/account
|
28
|
+
BptScraper::PullFeed.client = your_clients_account_email_address
|
29
|
+
```
|
30
|
+
|
31
|
+
The `PullFeed` class has methods for the six main API endpoints at BPT:
|
32
|
+
- Event List - event_list
|
33
|
+
- Date List - date_list
|
34
|
+
- Price List - price_list
|
35
|
+
- Event Sales - event_sales
|
36
|
+
- Date Sales - date_sales
|
37
|
+
- Order List - order_list
|
38
|
+
|
39
|
+
Here is an example usage:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
request = BptScraper::PullFeed.new
|
43
|
+
response = request.event_list
|
44
|
+
puts response.parsed_response
|
45
|
+
```
|
46
|
+
|
47
|
+
All API endpoint methods return a [HTTParty](https://github.com/jnunemaker/httparty) response object.
|
48
|
+
|
49
|
+
To use the scraper tool's session creator, first configure the `Login` class:
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
BptScraper::Login.email = your_account_email
|
53
|
+
BptScraper::Login.password = your_account_password
|
54
|
+
```
|
55
|
+
|
56
|
+
Then simply send the request:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
request = BptScraper::Login.new
|
60
|
+
response = request.create_session
|
61
|
+
if response
|
62
|
+
# do something else
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
Alternatively, you can configure the `Login` class in the moment:
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
request = BptScraper::Login.new(
|
70
|
+
email: your_account_email,
|
71
|
+
password: your_account_password
|
72
|
+
)
|
73
|
+
response = request.create_session
|
74
|
+
if response
|
75
|
+
# do something else
|
76
|
+
end
|
77
|
+
```
|
78
|
+
|
79
|
+
## Development
|
80
|
+
|
81
|
+
BptScraper uses the [dotenv](https://github.com/bkeepers/dotenv) gem to handle environmental variables. Before running tests, add a `.env` file to the root of the gem directory. In in, set the following three variables:
|
82
|
+
|
83
|
+
```
|
84
|
+
EMAIL=<your_account_email>
|
85
|
+
PASSWORD=<your_account_password>
|
86
|
+
DEVELOPER_ID=<your_developer_id>
|
87
|
+
```
|
88
|
+
|
89
|
+
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.
|
90
|
+
|
91
|
+
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).
|
92
|
+
|
93
|
+
## Contributing
|
94
|
+
|
95
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Joshua Bartlett/bpt_scraper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
96
|
+
|
97
|
+
|
98
|
+
## License
|
99
|
+
|
100
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
101
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'bpt_scraper'
|
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(__FILE__)
|
data/bin/setup
ADDED
data/bpt_scraper.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
require 'bpt_scraper/version'
|
7
|
+
|
8
|
+
Gem::Specification.new do |spec|
|
9
|
+
spec.name = 'bpt_scraper'
|
10
|
+
spec.version = BptScraper::VERSION
|
11
|
+
spec.authors = ['Joshua Bartlett']
|
12
|
+
spec.email = ['joshuabartlett@gmail.com']
|
13
|
+
|
14
|
+
spec.summary = 'A webscraper gem for BrownPaperTickets'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
25
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
27
|
+
spec.add_development_dependency 'rubocop', '~> 0.49.1'
|
28
|
+
spec.add_development_dependency 'dotenv', '~> 2.2.1'
|
29
|
+
spec.add_dependency 'nokogiri', '~> 1.8'
|
30
|
+
spec.add_dependency 'httparty', '~> 0.15.5'
|
31
|
+
end
|
data/lib/bpt_scraper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Main BPT Module
|
2
|
+
module Helpers
|
3
|
+
def missing_options_error(name)
|
4
|
+
raise "BptScraper::#{name} was never given required parameters"
|
5
|
+
end
|
6
|
+
|
7
|
+
def missing_parameters_error(name, parameter)
|
8
|
+
raise "BptScraper::#{name} was never given the required parameter: #{parameter}"
|
9
|
+
end
|
10
|
+
|
11
|
+
def no_developer_id_error
|
12
|
+
raise 'The BPT developer_id is required!'
|
13
|
+
end
|
14
|
+
|
15
|
+
def failed_login_fetch
|
16
|
+
raise 'BptScraper was unable to fetch the Bpt home page'
|
17
|
+
end
|
18
|
+
|
19
|
+
def failed_login_post
|
20
|
+
raise 'BptScraper was unable to create a session'
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'bpt_scraper/helpers'
|
2
|
+
|
3
|
+
# Main BPT module
|
4
|
+
module BptScraper
|
5
|
+
# Handles the scraping of the home page for CSRF token from username
|
6
|
+
# input. Additionally handles the POSTing of login info to create a session
|
7
|
+
class Login
|
8
|
+
include Helpers
|
9
|
+
attr_accessor :base_url, :fields, :email, :password
|
10
|
+
|
11
|
+
BASE_URL = 'https://www.brownpapertickets.com/login.html'.freeze
|
12
|
+
|
13
|
+
def initialize(base_url: nil, email: nil, password: nil)
|
14
|
+
self.base_url = base_url || self.class.base_url || BASE_URL
|
15
|
+
self.email = email || self.class.email
|
16
|
+
self.password = password || self.class.password
|
17
|
+
missing_options_error('Login') if (self.email.nil? || self.password.nil?)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create_session
|
21
|
+
self.fields = fetch_login_fields
|
22
|
+
send_login_request
|
23
|
+
end
|
24
|
+
|
25
|
+
class << self
|
26
|
+
attr_accessor :base_url, :fields, :email, :password
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.reset
|
30
|
+
self.base_url = nil
|
31
|
+
self.fields = nil
|
32
|
+
self.email = nil
|
33
|
+
self.password = nil
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
# fetches the login page of BPT to be parsed. BPT's CSRF procedure
|
39
|
+
# involves giving a unique id appended to the name of the input field
|
40
|
+
# e.g. name="email_jn7Y8jgf"
|
41
|
+
def fetch_login_fields
|
42
|
+
response = HTTParty.get(base_url)
|
43
|
+
failed_login_fetch unless response.code == 200
|
44
|
+
email_name = Nokogiri::HTML(response).css('#login_email')[0]['name']
|
45
|
+
password_name = Nokogiri::HTML(response).css('#login_password')[0]['name']
|
46
|
+
{ email_name: email_name, password_name: password_name }
|
47
|
+
end
|
48
|
+
|
49
|
+
def send_login_request
|
50
|
+
response = HTTParty.post(
|
51
|
+
base_url,
|
52
|
+
body: {
|
53
|
+
fields[:email_name].to_s => email,
|
54
|
+
fields[:password_name].to_s => password
|
55
|
+
}
|
56
|
+
)
|
57
|
+
failed_login_post unless response.code == 200
|
58
|
+
true
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
require 'bpt_scraper/helpers'
|
2
|
+
|
3
|
+
# Main BPT Module
|
4
|
+
module BptScraper
|
5
|
+
# Handles the fetching of data from BPTs API
|
6
|
+
class PullFeed
|
7
|
+
include Helpers
|
8
|
+
attr_accessor :developer_id, :client
|
9
|
+
|
10
|
+
def initialize(developer_id: nil, client: nil)
|
11
|
+
self.developer_id = developer_id || self.class.developer_id
|
12
|
+
self.client = client || self.class.client
|
13
|
+
no_developer_id_error if self.developer_id.nil?
|
14
|
+
end
|
15
|
+
|
16
|
+
# returns an HTTParty response object
|
17
|
+
def event_list
|
18
|
+
url = list_url_builder('eventlist')
|
19
|
+
response = fetch_url url
|
20
|
+
response
|
21
|
+
end
|
22
|
+
|
23
|
+
def date_list(event_id: nil, date_id: nil)
|
24
|
+
missing_parameters_error('PullFeed', 'event_id') if event_id.nil?
|
25
|
+
@event_id = event_id
|
26
|
+
@date_id = date_id
|
27
|
+
url = list_url_builder('datelist')
|
28
|
+
response = fetch_url url
|
29
|
+
response
|
30
|
+
end
|
31
|
+
|
32
|
+
def price_list(event_id: nil, date_id: nil, price_id: nil)
|
33
|
+
missing_parameters_error('PullFeed', 'event_id') if event_id.nil?
|
34
|
+
missing_parameters_error('PullFeed', 'date_id') if date_id.nil?
|
35
|
+
@event_id = event_id
|
36
|
+
@date_id = date_id
|
37
|
+
@price_id = price_id
|
38
|
+
url = list_url_builder('pricelist')
|
39
|
+
response = fetch_url url
|
40
|
+
response
|
41
|
+
end
|
42
|
+
|
43
|
+
def event_sales(event_id: nil, current: nil)
|
44
|
+
missing_parameters_error('PullFeed', 'client') if client.nil?
|
45
|
+
@event_id = event_id
|
46
|
+
@current = current
|
47
|
+
url = account_url_builder('eventsales')
|
48
|
+
response = fetch_url url
|
49
|
+
response
|
50
|
+
end
|
51
|
+
|
52
|
+
def date_sales(event_id: nil, date_id: nil)
|
53
|
+
missing_parameters_error('PullFeed', 'client') if client.nil?
|
54
|
+
missing_parameters_error('PullFeed', 'event_id') if event_id.nil?
|
55
|
+
@event_id = event_id
|
56
|
+
@date_id = date_id
|
57
|
+
url = account_url_builder('datesales')
|
58
|
+
response = fetch_url url
|
59
|
+
response
|
60
|
+
end
|
61
|
+
|
62
|
+
def order_list(event_id: nil, date_id: nil)
|
63
|
+
missing_parameters_error('PullFeed', 'client') if client.nil?
|
64
|
+
missing_parameters_error('PullFeed', 'event_id') if event_id.nil?
|
65
|
+
@event_id = event_id
|
66
|
+
@date_id = date_id
|
67
|
+
url = account_url_builder('orderlist')
|
68
|
+
response = fetch_url url
|
69
|
+
response
|
70
|
+
end
|
71
|
+
|
72
|
+
def list_url_builder(endpoint)
|
73
|
+
base_url = "https://www.brownpapertickets.com/api2/#{endpoint}?id=#{developer_id}"
|
74
|
+
base_url += "&client=#{client}" unless client.nil?
|
75
|
+
base_url += "&event_id=#{@event_id}" unless @event_id.nil?
|
76
|
+
base_url += "&date_id=#{@date_id}" unless @date_id.nil?
|
77
|
+
base_url += "&price_id=#{@price_id}" unless @price_id.nil?
|
78
|
+
base_url
|
79
|
+
end
|
80
|
+
|
81
|
+
def account_url_builder(endpoint)
|
82
|
+
base_url = "https://www.brownpapertickets.com/api2/#{endpoint}?id=#{developer_id}"
|
83
|
+
base_url += "&account=#{client}" unless client.nil?
|
84
|
+
base_url += "&event_id=#{@event_id}" unless @event_id.nil?
|
85
|
+
base_url += "&date_id=#{@date_id}" unless @date_id.nil?
|
86
|
+
base_url += "&price_id=#{@price_id}" unless @price_id.nil?
|
87
|
+
base_url += "¤t=1" if @only_current
|
88
|
+
base_url
|
89
|
+
end
|
90
|
+
|
91
|
+
def fetch_url(url)
|
92
|
+
HTTParty.get(url)
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.reset
|
96
|
+
self.developer_id = nil
|
97
|
+
self.client = nil
|
98
|
+
end
|
99
|
+
|
100
|
+
class << self
|
101
|
+
attr_accessor :developer_id, :client
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bpt_scraper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joshua Bartlett
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-12 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.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
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: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.49.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.49.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: dotenv
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.2.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.2.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nokogiri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.8'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: httparty
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.15.5
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.15.5
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- joshuabartlett@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".rubocop.yml"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CODE_OF_CONDUCT.md
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- bpt_scraper.gemspec
|
130
|
+
- lib/bpt_scraper.rb
|
131
|
+
- lib/bpt_scraper/helpers.rb
|
132
|
+
- lib/bpt_scraper/login.rb
|
133
|
+
- lib/bpt_scraper/pull_feed.rb
|
134
|
+
- lib/bpt_scraper/version.rb
|
135
|
+
homepage:
|
136
|
+
licenses:
|
137
|
+
- MIT
|
138
|
+
metadata: {}
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options: []
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.6.10
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: A webscraper gem for BrownPaperTickets
|
159
|
+
test_files: []
|