lawzava / emailscraper

Minimalistic library to scrape emails from websites with headless browser support.

Home Page:https://pkg.go.dev/github.com/lawzava/emailscraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)
}

About

Minimalistic library to scrape emails from websites with headless browser support.

https://pkg.go.dev/github.com/lawzava/emailscraper

License:MIT License


Languages

Language:Go 100.0%