TwspaceDL
Download Twitter Space Audio
Dependency
- FFmpeg
Example
Download by space url
space = TwitterSpaceDL.new(:space_url, "https://twitter.com/i/spaces/1OyJADqBEgDGb")
TwitterSpaceDL.download(space)Download by space id
space = TwitterSpaceDL.new(:space_id, "1OyJADqBEgDGb")
TwitterSpaceDL.download(space)
Download by space id, use custom filename template and save to download directory
space = TwitterSpaceDL.new(:space_id, "1OyJADqBEgDGb", "space-%{title}-%{rest_id}-%{created_at}", "./download")
TwitterSpaceDL.download(space)Installation
If available in Hex, the package can be installed
by adding twspace_dl to your list of dependencies in mix.exs:
def deps do
[
{:twspace_dl, "~> 0.1.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/twspace_dl.