项目作者: h6y3

项目描述 :
How do you know if an email is a company email or a person? Find out if they are using a free email provider! This Ruby class scrapes the biggest list of free email providers on the Internet and provides handy utilities to add it to your own code.
高级语言: Ruby
项目地址: git://github.com/h6y3/free_email_sites_scraper.git
创建时间: 2020-07-25T21:56:12Z
项目社区:https://github.com/h6y3/free_email_sites_scraper

开源协议:

下载


Free Email Sites Scraper

How do you tell the difference between a corporate email and a consumer email? One way is to determine if the user is using a free email provider!

The most comprehensive list of free email providers I can find on the Internet is on HubSpot’s knowledgebase of what domains they block. This repo contains a small class that simply scrapes Hubspots page and provides a few utilities so you can either use the data in your own code, or use the class and integrate it into your runtime environment. Now, you can filter the business emails out and target those customers directly.

Usage

Using the library in code

  1. require './free_email_sites_scraper.rb'
  2. scraper = FreeEmailSitesScraper.new
  3. puts scraper.emails #array of string emails

Generating a txt file (one email per line)

  1. require './free_email_sites_scraper.rb'
  2. scraper = FreeEmailSitesScraper.new
  3. scraper.to_txt("emails.txt") #write txt file

Generating ruby code to a file (for copy-pasting, and hard-coding purposes)

  1. require './free_email_sites_scraper.rb'
  2. scraper = FreeEmailSitesScraper.new
  3. scraper.to_ruby("email_declaration.rb") #write an array declaration for hardcoding entries

Files