No description
Find a file
2022-09-02 20:00:32 +00:00
docs Added a function to get video with max quality 2022-09-02 16:39:20 +00:00
src Added a function to get custom video resolution 2022-09-02 20:00:32 +00:00
tests Fixed wrong replace 2022-07-29 17:47:33 +00:00
.gitattributes Added docs 2022-07-29 17:21:15 +00:00
.gitignore Version 0.1.0 2022-07-29 17:17:16 +00:00
changelog.md Added a function to get custom video resolution 2022-09-02 20:00:32 +00:00
config.nims Version 0.1.0 2022-07-29 17:17:16 +00:00
license Added license 2022-07-29 17:18:38 +00:00
readme.md Added a function to get video with max quality 2022-09-02 16:39:20 +00:00
vimeo.nimble Added a function to get custom video resolution 2022-09-02 20:00:32 +00:00

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