mirror of
https://github.com/thisago/vimeo
synced 2026-01-15 05:01:37 +00:00
No description
| docs | ||
| src | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| changelog.md | ||
| config.nims | ||
| license | ||
| readme.md | ||
| vimeo.nimble | ||
Vimeo
This is a simple Vimeo page parser to get the video download URL
Not all data is extracted from page, but the most important is the download, later I add the missing data
Usage
CLI
$ vimeo -u "VIMEO URL" -r "Site that embed Vimeo video was (if video is restricted to a page)"
Lib
import std/httpclient
import pkg/vimeo
let
client = newHttpClient(headers = newHttpHeaders({
"referer": "Site that embed Vimeo video was (if video is restricted to a page)"
}))
html = client.getContent "VIMEO URL"
let vimeoData = parseVimeo html
echo vimeoData.maxQuality.url # shows the max quality video raw url
License
MIT