Skip to content

0xvbetsun/scraping

Repository files navigation

Scraping Handler

Build Status coverage GoReport license GitHub go.mod Go version of a Go module GoDoc

Install

# Go 1.16+
go install github.com/vbetsun/scraping@latest

# Go version < 1.16
go get -u github.com/vbetsun/scraping 

Usage

Run program

package main

import (
	"log"
	"net/http"

	"github.com/vbetsun/scraping"
)

func main() {
	http.Handle("/", scraping.Handler())
	log.Fatal(http.ListenAndServe(":3000", nil))
}

Send request

curl --location --request POST 'http://localhost:3000' \
--header 'Content-Type: text/plain' \
--data-raw 'https://google.com
https://example.com'

Example of response

16798

1256

License

Golang Scraping Handler is provided under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published