Module: VimeoProfile
- Included in:
- BrilliantWebScraper
- Defined in:
- lib/parsers/vimeo_profile.rb
Overview
Grep Vimeo social profile
Instance Method Summary collapse
Instance Method Details
#grep_vimeo_profile(response) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/parsers/vimeo_profile.rb', line 5 def grep_vimeo_profile(response) return if response.nil? || response.empty? vimeo_regex = %r{(?im)(https?:\/\/(?:www\.)?vimeo\.com\/(?!upgrade|features|enterprise|upload|api)\/?[^"'\\\&\?<>\s]+)} response.scan(vimeo_regex).flatten.compact.uniq end |