employ_me
Parse job listings.
Installation
Install it manually:
gem install employ_meOr add it to your Gemfile:
gem "employ_me"Usage
Location
Find the location.
require 'nokogiri'
require 'employ_me'
listing = <<-HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>San Francisco, CA</div>
</body>
</html>
HTML
document = Nokogiri::HTML(listing)
state_code, city, state = EmployMe::Parser::Location::Strategies::PatternMatch.perform(document)Programming Language
Find the programming language.
require 'nokogiri'
require 'employ_me'
listing = <<-HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>Ruby</div>
</body>
</html>
HTML
document = Nokogiri::HTML(listing)
language = EmployMe::Parser::ProgrammingLanguage::Strategies::PatternMatch.perform(document)Salary
Find the salary.
require 'nokogiri'
require 'employ_me'
listing = <<-HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>$160,000 - $180,000</div>
</body>
</html>
HTML
document = Nokogiri::HTML(listing)
salary_floor, salary_ceiling = EmployMe::Parser::Salary::Strategies::PatternMatch.perform(document)Technologies
Find the technologies.
require 'nokogiri'
require 'employ_me'
listing = <<-HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>Kafka</div>
<div>Kubernetes</div>
<div>Linux</div>
</body>
</html>
HTML
document = Nokogiri::HTML(listing)
technologies = EmployMe::Parser::Technologies::Strategies::PatternMatch.perform(document)Title
Find the title.
require 'nokogiri'
require 'employ_me'
listing = <<-HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<div>Senior Software Engineer</div>
</body>
</html>
HTML
document = Nokogiri::HTML(listing)
title, seniority = EmployMe::Parser::Title::Strategies::PatternMatch.perform(document)