# Go 1.16+
go install github.com/vbetsun/scraping@latest
# Go version < 1.16
go get -u github.com/vbetsun/scraping 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
Golang Scraping Handler is provided under the MIT License