applephile 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +40 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/applephile.gemspec +30 -0
- data/bin/console +0 -0
- data/bin/get_apple_products +4 -0
- data/bin/setup +8 -0
- data/config/environment.rb +3 -0
- data/lib/applephile/version.rb +3 -0
- data/lib/applephile.rb +1 -0
- data/lib/city.rb +22 -0
- data/lib/command_line_interface.rb +89 -0
- data/lib/craigslist.rb +106 -0
- data/lib/item.rb +8 -0
- data/touch +0 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7a104b4fb2f1646ced0150edde8e6c2e1bff38fca0385085826d665bd4499776
|
4
|
+
data.tar.gz: 4ae9064ec43b9c1f2b20b8d1a7dd936b2500ac304b3fc3b761cbfc8150e71061
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 41b84c9dba5a5bb29dfc8948c55b15029fdb5809324a2a1a8d22376ba9173c4cdb101e3184b6d6d4422bb0c94507558a0accac41ed4f1b7c693d31c3eecd0319
|
7
|
+
data.tar.gz: b3ad6cbe982c771b94d4e9218f920294a78c68931d13b6ddbede929c794320557da300e01bc450a29dd6fa359206e6fbb559f73c7b4a38e8a386b4f39766727a
|
data/.gitignore
ADDED
data/.rspec
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 rachavez1974@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/Gemfile.lock
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
coderay (1.1.2)
|
5
|
+
colorize (0.8.1)
|
6
|
+
diff-lcs (1.3)
|
7
|
+
method_source (0.9.2)
|
8
|
+
mini_portile2 (2.4.0)
|
9
|
+
nokogiri (1.10.3)
|
10
|
+
mini_portile2 (~> 2.4.0)
|
11
|
+
pry (0.12.2)
|
12
|
+
coderay (~> 1.1.0)
|
13
|
+
method_source (~> 0.9.0)
|
14
|
+
require_all (2.0.0)
|
15
|
+
rspec (3.8.0)
|
16
|
+
rspec-core (~> 3.8.0)
|
17
|
+
rspec-expectations (~> 3.8.0)
|
18
|
+
rspec-mocks (~> 3.8.0)
|
19
|
+
rspec-core (3.8.1)
|
20
|
+
rspec-support (~> 3.8.0)
|
21
|
+
rspec-expectations (3.8.4)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.8.0)
|
24
|
+
rspec-mocks (3.8.1)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.8.0)
|
27
|
+
rspec-support (3.8.2)
|
28
|
+
|
29
|
+
PLATFORMS
|
30
|
+
ruby
|
31
|
+
|
32
|
+
DEPENDENCIES
|
33
|
+
colorize
|
34
|
+
nokogiri
|
35
|
+
pry
|
36
|
+
require_all
|
37
|
+
rspec
|
38
|
+
|
39
|
+
BUNDLED WITH
|
40
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Ramon Chavez
|
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,43 @@
|
|
1
|
+
# Applephile
|
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/applephile`. 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 'applephile'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install applephile
|
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]/applephile. 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.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the Applephile project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/applephile/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/applephile.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "applephile/version"
|
5
|
+
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "applephile"
|
9
|
+
spec.version = Applephile::VERSION
|
10
|
+
spec.authors = ["Ramon Chavez"]
|
11
|
+
spec.email = ["rachavez1974@gmail.com"]
|
12
|
+
|
13
|
+
spec.summary = %q{A gem for scraping craigslist for apple products.}
|
14
|
+
spec.description = %q{The higher the price you choose, the newer the item.}
|
15
|
+
spec.homepage = "https://github.com/rachavez1974/applephile"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
end
|
data/bin/console
ADDED
File without changes
|
data/bin/setup
ADDED
data/lib/applephile.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative '../config/environment.rb'
|
data/lib/city.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
class City
|
2
|
+
attr_accessor :name, :state, :city_url
|
3
|
+
attr_reader :items
|
4
|
+
|
5
|
+
@@all = []
|
6
|
+
|
7
|
+
def initialize(city_attributes)
|
8
|
+
city_attributes.each {|key, value| self.send(("#{key}="), value)}
|
9
|
+
@items = []
|
10
|
+
@@all << self
|
11
|
+
end
|
12
|
+
|
13
|
+
def add_item(item)
|
14
|
+
item.city = self
|
15
|
+
@items << item
|
16
|
+
item
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_apple_prods_by_price(set_price)
|
20
|
+
@items.select { |item| item.price.to_i >= set_price.to_i }
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
class CLI
|
2
|
+
INTRO_MESSAGE = "WELCOME TO CRAIGSLIST SCRAPPER!"
|
3
|
+
|
4
|
+
def run
|
5
|
+
@scrape = CraigsList.new
|
6
|
+
puts INTRO_MESSAGE
|
7
|
+
choice = ""
|
8
|
+
while choice != "exit"
|
9
|
+
choice = display_main_menu
|
10
|
+
if choice == "scrape"
|
11
|
+
get_menu_input
|
12
|
+
create_items_from_array(scrape_apple_prodcuts)
|
13
|
+
grab_apple_prodcuts
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
def display_main_menu
|
20
|
+
stars = "************************".colorize(:yellow)
|
21
|
+
puts "#{stars} MAIN MENU #{stars}"
|
22
|
+
puts "Enter \"scrape\" to scrape.".colorize(:blue)
|
23
|
+
puts "Enter \"exit\" to end program.".colorize(:yellow)
|
24
|
+
puts "What would you like to do?".colorize(:blue)
|
25
|
+
gets.chomp
|
26
|
+
end
|
27
|
+
|
28
|
+
def get_menu_input
|
29
|
+
display_states
|
30
|
+
puts "Please enter a number for the state you'd like to scrape.".colorize(:green)
|
31
|
+
#convert number input from user
|
32
|
+
@state_scraped = convert_to_state(gets.chomp)
|
33
|
+
display_cities(@state_scraped)
|
34
|
+
puts "Please enter a number for the city you'd like to scrape.".colorize(:green)
|
35
|
+
@city_scraped = convert_to_city(@state_scraped, gets.chomp)
|
36
|
+
puts "You have chosen the state of #{@state_scraped}, and the city of #{@city_scraped.capitalize}."
|
37
|
+
end
|
38
|
+
|
39
|
+
def display_states
|
40
|
+
@scrape.get_states_names.each_with_index do |state, index|
|
41
|
+
print "#{index + 1}. #{state} ".ljust(28)
|
42
|
+
if (index + 1) % 5 == 0
|
43
|
+
print "\n"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
print "\n"
|
47
|
+
end
|
48
|
+
|
49
|
+
def display_cities(state)
|
50
|
+
@state_cities = @scrape.get_state_cities(state)
|
51
|
+
#find max length of city and use it left justify everything else for screen output
|
52
|
+
max_length = @state_cities.map(&:length).max
|
53
|
+
@state_cities.each_with_index do |city, index|
|
54
|
+
print "#{index + 1}. #{city.capitalize.ljust(max_length)} "
|
55
|
+
if (index + 1) % 3 == 0
|
56
|
+
print "\n"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
print "\n"
|
60
|
+
end
|
61
|
+
|
62
|
+
def convert_to_state(state_number)
|
63
|
+
#it takes in a number and returns the corresponding state's name
|
64
|
+
@scrape.get_states_names[state_number.to_i - 1]
|
65
|
+
end
|
66
|
+
|
67
|
+
def convert_to_city(state, city_number)
|
68
|
+
#it takes in a number and returns the corresponding city's name
|
69
|
+
@state_cities[city_number.to_i - 1]
|
70
|
+
end
|
71
|
+
|
72
|
+
def scrape_apple_prodcuts
|
73
|
+
@scraped_city_url = @scrape.return_city_link(@state_scraped, @city_scraped)
|
74
|
+
@phones = @scrape.scrape_by_city_url(@scraped_city_url)
|
75
|
+
end
|
76
|
+
|
77
|
+
def grab_apple_prodcuts
|
78
|
+
puts "Price enter a price higher than 150 to see the list of phones, defualt price is 150.".colorize(:blue)
|
79
|
+
display_apple_products_info(@city.get_apple_prods_by_price(gets.chomp))
|
80
|
+
end
|
81
|
+
|
82
|
+
def get_choice
|
83
|
+
puts "Enter number to see link phone on browser.".colorize(:cyan)
|
84
|
+
puts "next for more phones".colorize(:green)
|
85
|
+
puts "Or enter exit to re-scrape.".colorize(:blue)
|
86
|
+
gets.chomp
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
data/lib/craigslist.rb
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
require 'nokogiri'
|
2
|
+
require 'open-uri'
|
3
|
+
require 'pry'
|
4
|
+
|
5
|
+
class CraigsList
|
6
|
+
attr_accessor :site_url, :doc
|
7
|
+
|
8
|
+
def initialize()
|
9
|
+
@site_url = "https://www.craigslist.org/about/sites"
|
10
|
+
@doc = Nokogiri::HTML(open(@site_url))
|
11
|
+
end
|
12
|
+
|
13
|
+
def get_states_names
|
14
|
+
#it returns an array of states of the U.S., CLI will use to display them
|
15
|
+
doc.css(".colmask").first.css("h4").collect { |st| st.text}
|
16
|
+
end
|
17
|
+
|
18
|
+
def get_state_cities(state_name)
|
19
|
+
#it returns an array of cities belonging to a particular state
|
20
|
+
#1. find the state first.
|
21
|
+
#2. then collect the state's city array, return a flatten array so only cities can be used
|
22
|
+
#to be displayed in CLI
|
23
|
+
state_cities_array = []
|
24
|
+
states_cities_links.each do |states, cities_links|
|
25
|
+
if states.to_s == state_name
|
26
|
+
#collect only cities
|
27
|
+
state_cities_array = cities_links.collect { |city| city.keys }
|
28
|
+
break
|
29
|
+
end
|
30
|
+
end
|
31
|
+
state_cities_array.flatten!
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
def return_city_link(state, city)
|
36
|
+
#it returns the link of a particular city
|
37
|
+
#1. find state hash
|
38
|
+
#2. find the city
|
39
|
+
#3. get city's link
|
40
|
+
city_url = ""
|
41
|
+
states_cities_links.find do |key, value|
|
42
|
+
if key.to_s == state
|
43
|
+
value.find do |city_hash|
|
44
|
+
if city_hash.has_key?(city)
|
45
|
+
city_url = city_hash[city]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
city_url
|
51
|
+
end
|
52
|
+
def scrape_by_city_url(city_url)
|
53
|
+
items_array_of_hashes = []
|
54
|
+
#1. returns an array of hashes for every link (phone found) for a particular scrape criteria
|
55
|
+
#2. build site link with searching criteria phones with pic, new, os
|
56
|
+
#3. grab all phones that meet this search criteria.
|
57
|
+
#4. traverse the collection, and grab each needed attribute one by one.
|
58
|
+
#5. build hash, and save it to array.
|
59
|
+
#6. return hash
|
60
|
+
city_url = city_url + "search/moa?hasPic=1&condition=10&mobile_os=2"
|
61
|
+
city_doc = Nokogiri::HTML(open(city_url))
|
62
|
+
grab_all_phones = city_doc.css(".result-info")
|
63
|
+
grab_all_phones.each do |phones|
|
64
|
+
phone_url = phones.css("a")[0]["href"]
|
65
|
+
phone_price = phones.css(".result-price").text.split("$")[1]
|
66
|
+
phone_description = phones.css("a").text.split("\n")[0]
|
67
|
+
items_array_of_hashes.push({:url => phone_url,
|
68
|
+
:price => phone_price,
|
69
|
+
:description => phone_description})
|
70
|
+
end
|
71
|
+
items_array_of_hashes
|
72
|
+
end
|
73
|
+
|
74
|
+
|
75
|
+
private
|
76
|
+
|
77
|
+
def cities_and_links
|
78
|
+
#it returns a two dimensional array of cities, with their links as a hash by the state
|
79
|
+
# [[{"citya" => linka}, {"cityb" => linkb}, {"cityc" => linkc}], [{"cityz" => linkz}]]
|
80
|
+
|
81
|
+
two_dimension_city = []
|
82
|
+
doc.css(".colmask").first.css("ul").each do |city|
|
83
|
+
#collect returns [{"city1" => link1}, {city2 => link2}]
|
84
|
+
#collect removes "/" and unnecessary spaces from cities
|
85
|
+
two_dimension_city.push(city.css("li a").collect { |city| { city.text.split("/")[0].strip => city["href"] }})
|
86
|
+
end
|
87
|
+
two_dimension_city
|
88
|
+
end
|
89
|
+
|
90
|
+
def states_cities_links
|
91
|
+
#returns a array of hashes with keys equal to states, and values
|
92
|
+
#equal to an array of cities and their respective links
|
93
|
+
#{ :state1 => [{"city1" => link1}, {city2 => link2}, {city3 => link3}],
|
94
|
+
# :state2 => [{}]}
|
95
|
+
|
96
|
+
states_cities_links_hash = {}
|
97
|
+
#proceed by states, make hash, then push into array
|
98
|
+
#cities index implicitly starts from the first state
|
99
|
+
get_states_names.each_with_index do |state, index|
|
100
|
+
states_cities_links_hash[state.to_sym] = cities_and_links[index]
|
101
|
+
end
|
102
|
+
states_cities_links_hash
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
end
|
data/lib/item.rb
ADDED
data/touch
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: applephile
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ramon Chavez
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-18 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: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
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
|
+
description: The higher the price you choose, the newer the item.
|
56
|
+
email:
|
57
|
+
- rachavez1974@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".travis.yml"
|
65
|
+
- CODE_OF_CONDUCT.md
|
66
|
+
- Gemfile
|
67
|
+
- Gemfile.lock
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- applephile.gemspec
|
72
|
+
- bin/console
|
73
|
+
- bin/get_apple_products
|
74
|
+
- bin/setup
|
75
|
+
- config/environment.rb
|
76
|
+
- lib/applephile.rb
|
77
|
+
- lib/applephile/version.rb
|
78
|
+
- lib/city.rb
|
79
|
+
- lib/command_line_interface.rb
|
80
|
+
- lib/craigslist.rb
|
81
|
+
- lib/item.rb
|
82
|
+
- touch
|
83
|
+
homepage: https://github.com/rachavez1974/applephile
|
84
|
+
licenses:
|
85
|
+
- MIT
|
86
|
+
metadata: {}
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options: []
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
requirements: []
|
102
|
+
rubygems_version: 3.0.3
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: A gem for scraping craigslist for apple products.
|
106
|
+
test_files: []
|