TwitterSpaceDL (twspace_dl v0.1.0) View Source
Twitter Space Audio Downloader
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Download Twitter Space audio recording
New Twitter Space downloader
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Download Twitter Space audio recording
New Twitter Space downloader
source: specify the space source
:space_url
.For example,
"https://twitter.com/i/spaces/1OyJADqBEgDGb"
:space_id
. For example,"1OyJADqBEgDGb"
template: filename template
Default value:
"%{title}"
. Valid keys are:title
.created_at
.ended_at
.rest_id
.started_at
.total_participated
.total_replay_watched
.updated_at
.
Return: pid
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)