Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Last active December 16, 2015 18:38
Show Gist options
  • Save chintanparikh/5478703 to your computer and use it in GitHub Desktop.
Save chintanparikh/5478703 to your computer and use it in GitHub Desktop.
scraper.rb
out = File.new('out.txt', 'w')
File.open('emails.html').read.scan(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i).uniq.each { |e| out.print(e + ", ") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment