mirror of
https://github.com/bytedream/vivo.git
synced 2025-06-27 16:00:34 +02:00
Added all files
This commit is contained in:
38
README.md
Normal file
38
README.md
Normal file
@ -0,0 +1,38 @@
|
||||
# vivo
|
||||
|
||||
A very simple tool to get the video url and some other stuff from a [vivo.sx](https://vivo.sx) video.
|
||||
|
||||
Only tested on linux, but should work on Mac and Windows too.
|
||||
|
||||
## Install:
|
||||
|
||||
```
|
||||
go get github.com/bytedream/vivo
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Get infos about a video:
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/bytedream/vivo"
|
||||
)
|
||||
|
||||
|
||||
func main() {
|
||||
vivoVideo, err := vivo.GetVideo("https://vivo.sx/1234567890")
|
||||
// this extract all the infos about the video
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
fmt.Println(vivoVideo.VideoURL) // url of the video
|
||||
}
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the Mozilla Public Licence 2.0 (MPL-2.0) licence - see the [LICENSE](LICENCE) file for more details
|
Reference in New Issue
Block a user