ioffer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +5 -0
- data/Gemfile +0 -1
- data/README.md +17 -17
- data/gemspec.yml +5 -0
- data/lib/ioffer/version.rb +1 -1
- metadata +38 -5
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -18,27 +18,27 @@ Features
|
|
18
18
|
Examples
|
19
19
|
--------
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
21
|
+
require 'ioffer'
|
22
|
+
require 'open-uri'
|
23
|
+
|
24
|
+
search = IOfferSearch.parse open("http://www.ioffer.com/si/saxphones")
|
25
|
+
|
26
|
+
search.results.each do |result|
|
27
|
+
puts result.title
|
28
|
+
puts result.url
|
29
|
+
end
|
30
|
+
|
31
|
+
result_url = search.results.first.url
|
32
|
+
|
33
|
+
page = IOfferPage.parse open(result_url)
|
34
|
+
puts page.seller_name
|
35
|
+
puts page.item_id
|
36
|
+
puts page.price
|
37
37
|
|
38
38
|
Install
|
39
39
|
-------
|
40
40
|
|
41
|
-
|
41
|
+
$ gem install ioffer
|
42
42
|
|
43
43
|
Copyright
|
44
44
|
---------
|
data/gemspec.yml
CHANGED
data/lib/ioffer/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ioffer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ezekiel Templin
|
@@ -13,8 +13,41 @@ cert_chain: []
|
|
13
13
|
date: 2011-04-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: nibbler
|
17
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.2.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: nokogiri
|
28
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.4.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: sanitize
|
39
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 2.0.1
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: bundler
|
50
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
18
51
|
none: false
|
19
52
|
requirements:
|
20
53
|
- - ~>
|
@@ -22,10 +55,10 @@ dependencies:
|
|
22
55
|
version: 1.0.0
|
23
56
|
type: :development
|
24
57
|
prerelease: false
|
25
|
-
version_requirements: *
|
58
|
+
version_requirements: *id004
|
26
59
|
- !ruby/object:Gem::Dependency
|
27
60
|
name: yard
|
28
|
-
requirement: &
|
61
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
29
62
|
none: false
|
30
63
|
requirements:
|
31
64
|
- - ~>
|
@@ -33,7 +66,7 @@ dependencies:
|
|
33
66
|
version: 0.6.0
|
34
67
|
type: :development
|
35
68
|
prerelease: false
|
36
|
-
version_requirements: *
|
69
|
+
version_requirements: *id005
|
37
70
|
description: Very basic iOffer.com parser using Nibbler.
|
38
71
|
email:
|
39
72
|
- ezkl@me.com
|