Home

Awesome

GolangCI Version Go Report Card Coverage Status Go Reference

emailscraper

Minimalistic library to scrape emails from websites.

Requires chromium or google-chrome available in environment for JS render utilization.

Installation

go get github.com/lawzava/emailscraper

Usage

package main

import (
	"fmt"
	
	"github.com/lawzava/emailscraper"
)

func main() {
	s := emailscraper.New(emailscraper.DefaultConfig())

	extractedEmails, err := s.Scrape("https://lawzava.com")
	if err != nil {
		panic(err)
	}
	
	fmt.Println(extractedEmails)
}