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

https://github.com/tada-team/dyatl

Web preivews
https://github.com/tada-team/dyatl

Last synced: 2 months ago
JSON representation

Web preivews

Awesome Lists containing this project

README

          

![example workflow name](https://github.com/tada-team/dyatl/workflows/build/badge.svg)
[![codecov](https://codecov.io/gh/tada-team/dyatl/branch/main/graph/badge.svg)](https://codecov.io/gh/tada-team/dyatl)
# Links checker

Takes title and og:image from any page:
```go
c := dyatl.Client()
result, err := c.Preview("https://meduza.io/shapito/2020/12/29/kazhduyu-zimu-v-rossii-edyat-zamerzshiy-doshirak-ved-chem-esche-zanyatsya-v-yakutske-ili-novosibirske")
if err != nil {
panic(err)
}

fmt.Println("Title:", c.Title)
fmt.Println("ThumbnailUrl:", c.ThumbnailUrl)
```

Special cases like YouTube:
```go
c := dyatl.Client()
result, err := c.Preview("https://www.youtube.com/watch?v=eLAHSRmFFzE")
if err != nil {
panic(err)
}

fmt.Println("Title:", c.Title)
fmt.Println("ThumbnailUrl:", c.ThumbnailUrl)
fmt.Println("YoutubeId:", c.YoutubeId)
```