An open API service indexing awesome lists of open source software.

https://github.com/lalabuy948/webprev

Golang package provides easy extraction of website previews. Generic, Facebook and Twitter cards.
https://github.com/lalabuy948/webprev

golang golang-package html-parsing website-preview

Last synced: over 1 year ago
JSON representation

Golang package provides easy extraction of website previews. Generic, Facebook and Twitter cards.

Awesome Lists containing this project

README

          

# webprev [![Go Report Card](https://goreportcard.com/badge/github.com/lalabuy948/webprev)](https://goreportcard.com/report/github.com/lalabuy948/webprev) [![Build Status](https://github.com/lalabuy948/webprev/workflows/build/badge.svg)](https://github.com/lalabuy948/webprev/actions) [![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org)

> webprev package provides easy access to website previews

## Funcs

- `Preview(url)` will make request by given url, parse html amd return WebPreview struct.

[example](examples/simple.go)

`go get -u github.com/lalabuy948/webprev`