twitter(x) space uploader to telegram channel
ffmpeg
if not using portable binaries.- A logged in user's cookies file exported from Twitter in the Netscape format.
- telegram bot toekn and CHAT_ID
at first you need to add bot toekn and CHAT_ID into .env file
for single space
tsut -i SPACE_LINK -c COOKIE_FILE -b BOT_TOKEN -C TELEGRAM_CHANNEL
Here's the output of the help option
usage: tsut [-h] -c COOKIE_FILE
[-i SPACE_URL] [-f spaces.txt]
Script designed to help download twitter spaces
options:
-h, --help show this help message and exit
-c COOKIE_FILE cookies file in the Netscape format. The specs of the
Netscape cookies format can be found here:
https://curl.se/docs/http-cookies.html. The cookies
file is now required due to the Twitter API change
that prohibited guest user access to Twitter API
endpoints on 2023-07-01.
input:
-i SPACE_URL, --input-url SPACE_URL
-f spaces.txt, --file spaces.txt
Changing ID3 metadata in HLS audio elementary stream is not implemented....
This is an error in ffmpeg that does not affect twspace_dl at all as far as I know.