Link preview and site info library for Go
-
Updated
Jun 21, 2024 - Go
Link preview and site info library for Go
This code is a Go implementation of a link preview scraper. Given a URL, it can fetch the contents of the web page at that URL and extract some metadata (icon, name, title, description, images, and link) to create a DocumentPreview struct. This struct can be embedded in a Document struct which also contains the HTML contents of the page in a bytes.
Golang package to quickly return a preview of a webpage
Add a description, image, and links to the url-preview topic page so that developers can more easily learn about it.
To associate your repository with the url-preview topic, visit your repo's landing page and select "manage topics."