Module: LinkedinProfile
- Included in:
- BrilliantWebScraper
- Defined in:
- lib/parsers/linkedin_profile.rb
Overview
Grep linkedin profile
Instance Method Summary collapse
Instance Method Details
#grep_linkedin_profile(response) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/parsers/linkedin_profile.rb', line 5 def grep_linkedin_profile(response) return if response.nil? || response.empty? linkedin_profile_regex = %r{(?im)(https:\/\/www\.linkedin\.com\/company\/[^"'\?<>\s\/]+)} response.scan(linkedin_profile_regex).flatten.compact.uniq end |