Support Twitter Spaces streams
See original GitHub issueChecklist
- I’m reporting a site feature request
- I’ve verified that I’m running youtube-dl version 2021.05.16
- I’ve searched the bugtracker for similar site feature requests including closed ones
Description
An example tweet with a Spaces link: https://twitter.com/akirosenthal/status/1397936847741800454
youtube-dl output:
$ youtube-dl https://twitter.com/akirosenthal/status/1397936847741800454
[twitter] 1397936847741800454: Downloading guest token
[twitter] 1397936847741800454: Downloading JSON metadata
[generic] 1yNGaWpbVQQxj: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1yNGaWpbVQQxj: Downloading webpage
[generic] 1yNGaWpbVQQxj: Extracting information
ERROR: Unsupported URL: https://twitter.com/i/spaces/1yNGaWpbVQQxj
Looking at the network tab in Chrome’s developer tools, it seems like the site’s making connections to pscp.tv, so possibly the already existing Periscope extractor could be used as a base to support Spaces URLs. An example playlist URL:
https://prod-fastly-ap-northeast-1.video.pscp.tv/Transcoding/v1/hls/E2iot0n3CMPrkdBrsf2mBZdvoZb6mvaVHlKLy8Kriww5Mi_ItgaIB4UdvCg0CtyapoSTlbhm9sfSfyKxQ1d16A/non_transcode/ap-northeast-1/periscope-replay-direct-prod-ap-northeast-1-public/audio-space/dynamic_playlist.m3u8?type=live
Example playlist content:
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:4
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA-SEQUENCE:501
#EXT-X-DISCONTINUITY-SEQUENCE:0
#EXT-X-START:TIME-OFFSET=0.01
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:10.989Z
#EXTINF:2.986,
chunk_1622130185269794294_501_a.aac?type=live
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:14.008Z
#EXTINF:3.030,
chunk_1622130188372878103_502_a.aac?type=live
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:17.053Z
#EXTINF:3.093,
chunk_1622130191393163530_503_a.aac?type=live
#EXT-X-PROGRAM-DATE-TIME:2021-05-27T15:43:20.084Z
#EXTINF:3.008,
chunk_1622130194383671872_504_a.aac?type=live
The last chunk in that playlist would refer to this URL:
https://prod-fastly-ap-northeast-1.video.pscp.tv/Transcoding/v1/hls/E2iot0n3CMPrkdBrsf2mBZdvoZb6mvaVHlKLy8Kriww5Mi_ItgaIB4UdvCg0CtyapoSTlbhm9sfSfyKxQ1d16A/non_transcode/ap-northeast-1/periscope-replay-direct-prod-ap-northeast-1-public/audio-space/chunk_1622130194383671872_504_a.aac?type=live
Issue Analytics
- State:
- Created 2 years ago
- Reactions:16
- Comments:13
Top Results From Across the Web
The how-to guide for Twitter Spaces | Twitter Create
Our how-to guide for Twitter Spaces answers all of your questions. Want to know how to pin a Tweet? Or learn how to...
Read more >Twitter Spaces: Your Complete Guide to Getting Started
Twitter Spaces is an audio streaming feature available in the Twitter app. It lets users live stream discussions and allows a wide variety ......
Read more >How to use Twitter Spaces and grow your live stream #Twitter ...
Twitter Spaces is a new tool available to users on both iOS and Android which grants the ability to host audio only "Spaces"...
Read more >Your Ultimate Guide to Twitter Spaces in 2023
1. When you’re the host, this is how you’d be able to create a Space:
• Long press on the Compose button on your...
Read more >How To Use Twitter Spaces - Later
Once there are listeners in your Space, you can help guide the conversation and give context to a topic by sharing a Tweet...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this would be extra useful as a Twitter Spaces recording only lives for 30 days, afterwards it’s lost.
It would really be great if this is supported.
More Twitter Spaces links to inspect: https://twitter.com/search?q=lang%3Aen filter%3Aspaces&f=live