module PinterestProfile
Grep pinterest profile
Public Instance Methods
grep_pinterest_profile(response)
click to toggle source
# File lib/parsers/pinterest_profile.rb, line 5 def grep_pinterest_profile(response) return if response.nil? || response.empty? pinterest_regex = %r{(?im)(https?:\/\/[\w\.]*pinterest\.com\/(?!"|'|\?|#|cookies(?:"|'')|(?:pin|v3|js|feed)\/)[^"'<>?&\s\/]+)} response.scan(pinterest_regex).flatten.compact.uniq end