A Go module gathers elements required for linkPreview.
package main
import (
"fmt"
"github.com/junzki/link-preview"
)
func main() {
link := "http://custom-domain.local/case.html"
result, err := LinkPreview.Preview(link, nil)
if err != nil {
panic(err)
}
fmt.Println(result.Title)
}
Thanks to aakash4525's py_link_Preview, this package is mostly inspired by his awesome work.
BSD 3-Clause License