indeedparser 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 008a524dd65e9e1a5656ff8c96c22cc4c389b3c7
4
- data.tar.gz: 15d45fae616ec2406da68f21e1fb6e8978ad6a98
3
+ metadata.gz: 3a90f10ed67715bdfed34bb9cbfa3646ba57ac62
4
+ data.tar.gz: f39cb18acafcd7551b1c9b87d0212ab2268501fa
5
5
  SHA512:
6
- metadata.gz: 9f37e5e940ac18068f05980740edd8a79aa2752a3e5e781ffa5d17c4e9e10c1c895918c5e381a52815867a0218f3d3a8395c8bf3248efe9899c66fd4c9416a10
7
- data.tar.gz: 26d5f5a34663e2587de06423139ccae2fc5bd0031f5a56fddc4b74d8961469e77eff616a2ae98569bafcbbb3476dd8dcc254b87bbd0f8bfd916477e753bdfa1d
6
+ metadata.gz: e8c51eb95c53c7f43d1f32be500ed474eeb6257ed5c79e025880411a58fa141f3e60c485014de39567a5e8f34f909e4668b21b176b283feace2903e3415b238a
7
+ data.tar.gz: 78b7a1b47d6b401f32510868c39f99a974217a995a0cd08ff4f2c764de3c5ec9b3521a21fe20d84c25f2c133df92bdcebcdd1d7b164de9b62c5abdb44cab244e
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class Awards
4
+ class IndeedAwards
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  awards = html.xpath("//div[contains(concat(' ',normalize-space(@class),' '),' award-section ')]")
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class Certifications
4
+ class IndeedCertifications
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  certifications = html.xpath("//div[contains(concat(' ',normalize-space(@class),' '),' certification-section ')]")
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class Degrees
4
+ class IndeedDegrees
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  degrees = html.xpath("//div[@itemtype='http://schema.org/EducationalOrganization']")
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class Groups
4
+ class IndeedGroups
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  groups = html.xpath("//div[contains(concat(' ',normalize-space(@class),' '),' group-section ')]")
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class Jobs
4
+ class IndeedJobs
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  @html = Nokogiri::HTML(html)
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class Links
4
+ class IndeedLinks
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  links = html.xpath("//div[contains(concat(' ',normalize-space(@class),' '),' link-section ')]")
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class MilitaryService
4
+ class IndeedMilitaryService
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  military_items = html.xpath("//div[contains(concat(' ',normalize-space(@class),' '),' military-section ')]")
@@ -1,13 +1,13 @@
1
1
  require 'nokogiri'
2
- load 'degrees.rb'
3
- load 'military_service.rb'
4
- load 'certifications.rb'
5
- load 'rec_people.rb'
6
- load 'links.rb'
7
- load 'awards.rb'
8
- load 'groups.rb'
9
-
10
- class PersonalInfo
2
+ load 'indeed_degrees.rb'
3
+ load 'indeed_military_service.rb'
4
+ load 'indeed_certifications.rb'
5
+ load 'indeed_rec_people.rb'
6
+ load 'indeed_links.rb'
7
+ load 'indeed_awards.rb'
8
+ load 'indeed_groups.rb'
9
+
10
+ class IndeedPersonalInfo
11
11
  def initialize(html, url)
12
12
  @raw_html = html
13
13
  @html = Nokogiri::HTML(html)
@@ -40,43 +40,43 @@ class PersonalInfo
40
40
 
41
41
  # Get certification data
42
42
  def certifications
43
- c = Certifications.new(@html)
43
+ c = IndeedCertifications.new(@html)
44
44
  c.get_certifications
45
45
  end
46
46
 
47
47
  # Get list of suggested resumes from side
48
48
  def rec_people
49
- r = RecPeople.new(@html)
49
+ r = IndeedRecPeople.new(@html)
50
50
  r.get_rec_people
51
51
  end
52
52
 
53
53
  # Get any links they list
54
54
  def links
55
- l = Links.new(@html)
55
+ l = IndeedLinks.new(@html)
56
56
  l.get_links
57
57
  end
58
58
 
59
59
  # Get list of awards
60
60
  def awards
61
- a = Awards.new(@html)
61
+ a = IndeedAwards.new(@html)
62
62
  a.get_awards
63
63
  end
64
64
 
65
65
  # Get list of groups
66
66
  def groups
67
- g = Groups.new(@html)
67
+ g = IndeedGroups.new(@html)
68
68
  g.get_groups
69
69
  end
70
70
 
71
71
  # Get list of degrees
72
72
  def degrees
73
- d = Degrees.new(@html)
73
+ d = IndeedDegrees.new(@html)
74
74
  d.get_degrees
75
75
  end
76
76
 
77
77
  # Get military service
78
78
  def military_service
79
- m = MilitaryService.new(@html)
79
+ m = IndeedMilitaryService.new(@html)
80
80
  m.get_military_service
81
81
  end
82
82
 
@@ -1,7 +1,7 @@
1
1
  require 'nokogiri'
2
2
  load 'utilities.rb'
3
3
 
4
- class RecPeople
4
+ class IndeedRecPeople
5
5
  include Utilities
6
6
  def initialize(html)
7
7
  rec_people = html.css(".rec_resume")
data/lib/indeedparser.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'requestmanager'
2
2
  require 'json'
3
- load 'personal_info.rb'
4
- load 'jobs.rb'
3
+ load 'indeed_personal_info.rb'
4
+ load 'indeed_jobs.rb'
5
5
 
6
6
  class IndeedParser
7
7
  def initialize(html, url, crawler_fields)
@@ -13,10 +13,10 @@ class IndeedParser
13
13
 
14
14
  # Parse profile
15
15
  def parse
16
- p = PersonalInfo.new(@html, @url)
16
+ p = IndeedPersonalInfo.new(@html, @url)
17
17
  @personal_info = p.get_personal_info
18
18
 
19
- j = Jobs.new(@html)
19
+ j = IndeedJobs.new(@html)
20
20
  @job_info = j.get_jobs
21
21
  end
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indeedparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath
@@ -16,16 +16,16 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/awards.rb
20
- - lib/certifications.rb
21
- - lib/degrees.rb
22
- - lib/groups.rb
19
+ - lib/indeed_awards.rb
20
+ - lib/indeed_certifications.rb
21
+ - lib/indeed_degrees.rb
22
+ - lib/indeed_groups.rb
23
+ - lib/indeed_jobs.rb
24
+ - lib/indeed_links.rb
25
+ - lib/indeed_military_service.rb
26
+ - lib/indeed_personal_info.rb
27
+ - lib/indeed_rec_people.rb
23
28
  - lib/indeedparser.rb
24
- - lib/jobs.rb
25
- - lib/links.rb
26
- - lib/military_service.rb
27
- - lib/personal_info.rb
28
- - lib/rec_people.rb
29
29
  - lib/utilities.rb
30
30
  homepage: https://github.com/TransparencyToolkit/indeedparser
31
31
  licenses: