indeed_scraper2022 0.4.0 → 0.4.1
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 +6 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 88f80a06ef0ab435c144d3b4ec53f1c98f2da7c427224c31dbef44f62fdafee3
|
|
4
|
+
data.tar.gz: d0f549053bb225e7c8ebb2492715c6c470f689e191e9ae747e8f97317a61c02c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90d23c6c35a87cdcf763dc15a072f35ede166aafe2f1f5eed9294de28e916cdaca3eb043a034fb50750c9444af9e5042dc50d01390816efcdde360d2d01c4e55
|
|
7
|
+
data.tar.gz: 30153c9c5aafdb5e89d56632e223edfe0196a71c4d9294cc3f963f2039238cd27b836ac9ac42b49cad27988ada868d0d002246699399f7d175216b97689d46ed
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/indeed_scraper2022.rb
CHANGED
|
@@ -108,7 +108,9 @@ class IndeedScraper2022
|
|
|
108
108
|
div1 = td.element("div[@class='companyInfo']")
|
|
109
109
|
|
|
110
110
|
# company name (e.g. Coda Octopus Products Ltd)
|
|
111
|
-
|
|
111
|
+
coname = div1.element("span[@class='companyName']")
|
|
112
|
+
puts 'coname: ' + coname.text.inspect if @debug
|
|
113
|
+
company_name = coname.text.to_s.strip.length > 1 ? coname.text : coname.element('a').text
|
|
112
114
|
|
|
113
115
|
# company location (e.g. Edinburgh)
|
|
114
116
|
location = div1.element("div[@class='companyLocation']")&.text
|
|
@@ -339,12 +341,13 @@ class IS22Archive
|
|
|
339
341
|
|
|
340
342
|
def list()
|
|
341
343
|
|
|
342
|
-
@index.map.with_index do |x,i|
|
|
344
|
+
@index.to_a.reverse.map.with_index do |x,i|
|
|
343
345
|
|
|
344
346
|
id, h = x
|
|
345
347
|
|
|
346
348
|
puts 'h: ' + h.inspect if @debug
|
|
347
|
-
|
|
349
|
+
co = h[:company].length > 1 ? " (%s)" % h[:company] : ''
|
|
350
|
+
"%2d. %s: %s%s" % [i+1, Date.parse(h[:added]).strftime("%d %b"), h[:title], co]
|
|
348
351
|
|
|
349
352
|
end.join("\n")
|
|
350
353
|
|
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.4.
|
|
4
|
+
version: 0.4.1
|
|
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-04-
|
|
38
|
+
date: 2022-04-16 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: nokorexi
|
metadata.gz.sig
CHANGED
|
Binary file
|