Skip to main content

space_dl

Python library/app to download twitter spaces and make multiple output from them This downloads a Twitter space as separated file m3u8 playlist, then it can convert all into a single chapterized m4a audio file

The M4A audio file is Chapterized so if you use a player with media chapter support(like mpv or vlc) you can switch between speakers

features

  • Download Twitter space
  • Merge files into one m4a file
  • Chapterize m4a file, so we know when each user speaks and can switch between them
  • Make mp4 video of Space with avatars and waveform spectrum effect (#TODO)

Installation

FFMPEG

First install ffmpeg; on Debian based linux distros you can do:

sudo apt-get install ffmpeg

For other OS refer to FFMPEG documents

Via pypi.org

pip install space_dl

Via git

pip install https://github.com/RYNEQ/space_dl

Usage

As an application

python3 -m space_dl [-a AUDIO_FILE] [-d OUT_DIR] [-p PROXY] [-v] URL

As a library

import space_dl
s = space_dl.Space.from_url(url, out_dir, verbose=True, proxies=...)
print(f"Playlist saved as {s.playlist_file_path}")
s.merge_into_m4a(audio_file_path)
print(f"Audio file saved as {audio_file_path}")

Options

  -a/--audio-file AUDIO_FILE: If passed the playlist will be converted to a chapterized m4a audio file
  -d/--out-dir OUT_DIR: Set output directory
  -p/--proxy PROXY: Use proxy (http,socks4,socks5,socks5h)
                    Use socks5h to pass the DNS queries via proxy
  -v/--verbose: Verbose Mode

Metadata

Release files for space-dl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for space-dl 0.1.0
File Size Uploaded Provenance Actions
space_dl-0.1.0.tar.gz 8.3 kB Without provenance Details for space_dl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for space-dl 0.1.0
File Interpreter ABI Platform Actions
space_dl-0.1.0-py3-none-any.whl Python 3 none any Details for space_dl-0.1.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / space_dl-0.1.0.tar.gz

Download URL space_dl-0.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
47f639793ed0dba8fc1adcbbaccfeb6cdb30cee0b46b298e00b952d00c246e4f
BLAKE2b-256 checksum
How to use checksums
c7e76cefa7f044cf0612852472328dc47abc691eab9fd6850b891440347e2319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / space_dl-0.1.0-py3-none-any.whl

Download URL space_dl-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e9619f07dfbbc201aff7830f175838a40c072bef7b4d4fae4bd14b9f45f83e4
BLAKE2b-256 checksum
How to use checksums
225146b726b4c1a5c3e00d66471aa03153675b4de20f106cb80167cca9d16f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Security for space-dl 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page