indeed_scraper2022 0.1.2 → 0.1.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/indeed_scraper2022.rb +9 -1
- data.tar.gz.sig +0 -0
- metadata +8 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bcc9484e0c35971209ee1419b9ff7d07d912831eedf889d10789c2ab4bf0863
|
|
4
|
+
data.tar.gz: c3be84be0f499ed92794a8de0c3109cc99d3ba73f6aef74f9426a12b0a250e10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e6d64b754bbd242f6d038f385602ed4dc5fe2d8112da12709a673a494419a159c9afe2ef4fa6bc95cccd160f9bceb22b03783108ffec213ed96442372092f81
|
|
7
|
+
data.tar.gz: eae4c65e2cd7784aff9c3db394fa29e44344e61a5275a31790a1fc21c57df34204585aa5e9e3db8af28a251cf2366675d4d9027b9a6578456dd9f64744842caa
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/indeed_scraper2022.rb
CHANGED
|
@@ -9,6 +9,9 @@ require 'nokorexi'
|
|
|
9
9
|
# don't rely upon this gem working in the near future.
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
class IndeedScraper2022Err < Exception
|
|
13
|
+
end
|
|
14
|
+
|
|
12
15
|
class IndeedScraper2022
|
|
13
16
|
|
|
14
17
|
def initialize(url='https://uk.indeed.com/?r=us', q: '', location: '', debug: false)
|
|
@@ -26,6 +29,11 @@ class IndeedScraper2022
|
|
|
26
29
|
end
|
|
27
30
|
|
|
28
31
|
def page(n)
|
|
32
|
+
|
|
33
|
+
if n < 1 or n > @results.length then
|
|
34
|
+
raise IndeedScraper2022Err, 'Invalid page no.'
|
|
35
|
+
end
|
|
36
|
+
|
|
29
37
|
url = @results[n-1][:link]
|
|
30
38
|
fetchjob(url)
|
|
31
39
|
end
|
|
@@ -170,7 +178,7 @@ class IS22Plus < IndeedScraper2022
|
|
|
170
178
|
def list()
|
|
171
179
|
|
|
172
180
|
@results.map.with_index do |x,i|
|
|
173
|
-
"%2d. %s" % [i,x[:title]]
|
|
181
|
+
"%2d. %s" % [i+1,x[:title]]
|
|
174
182
|
end.join("\n")
|
|
175
183
|
|
|
176
184
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: indeed_scraper2022
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
YLGLkwmbiUHX5dRU3RwOwOrZiyvND5BIj7S6dZ6jYHe0I727apgQNc3swTz5mW6I
|
|
36
36
|
SW/2zInu2bkj/meWm5eBoWHT
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2022-
|
|
38
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: nokorexi
|
|
@@ -43,20 +43,20 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0.
|
|
46
|
+
version: '0.7'
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 0.
|
|
49
|
+
version: 0.7.0
|
|
50
50
|
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '0.
|
|
56
|
+
version: '0.7'
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: 0.
|
|
59
|
+
version: 0.7.0
|
|
60
60
|
- !ruby/object:Gem::Dependency
|
|
61
61
|
name: mechanize
|
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -78,7 +78,7 @@ dependencies:
|
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
79
|
version: 2.8.4
|
|
80
80
|
description:
|
|
81
|
-
email: digital.robertson@
|
|
81
|
+
email: digital.robertson@gmail.com
|
|
82
82
|
executables: []
|
|
83
83
|
extensions: []
|
|
84
84
|
extra_rdoc_files: []
|
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
|
-
|
|
107
|
-
rubygems_version: 2.7.10
|
|
106
|
+
rubygems_version: 3.2.22
|
|
108
107
|
signing_key:
|
|
109
108
|
specification_version: 4
|
|
110
109
|
summary: Attempts to scrape the indeed.com jobsearch results (1 page).
|
metadata.gz.sig
CHANGED
|
Binary file
|