Skip to content

Go-Open-Graph-Scraper is a go package to get metadata from websites easily, also returning formatted logos and names for any compatible website.

License

Notifications You must be signed in to change notification settings

pedrosouza458/go-open-graph-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Open Graph Scraper

This is a very simples Golang scraping that uses website OG (Open Graph) to get some informations like website name, page title, description and images, feel free to contribute forking this repo, the main goal is to use this package and my future project (that will also be open-source) and to study Golang, cause i know that packages like that already exists, but i wanna make my own.

GitHub License GitHub Last Commit

Run this code locally


git clone https://github.com/pedrosouza458/go-open-graph-scraper

go mod tidy
go run .

Now just type the website url in terminal, some sites will not display some informations.

Example:

Input


https://www.tabnews.com.br/marlon/ajuda-sujestao-de-conteudos-de-golang

Output


Logo: https://i.imgur.com/O5OOa3s.png

Website name: tabnews

Image:https://www.tabnews.com.br/api/v1/contents/marlon/ajuda-sujestao-de-conteudos-de-golang/thumbnail

Page Name:[Ajuda] Sujestão de conteúdos de Golang · marlon

Page Description: Olá TabNews, estou querendo aprender Golang, vejo que é uma linguagem muito boa para trabalhar com DevOps e considerada muito rápida e fácil. Gostaria de pedir ajuda aos universitários co...

About

Go-Open-Graph-Scraper is a go package to get metadata from websites easily, also returning formatted logos and names for any compatible website.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published