[GH-ISSUE #32] downloading transcript for a podcast #17

Open
opened 2026-02-27 19:05:25 +03:00 by kerem · 0 comments
Owner

Originally created by @ghost on GitHub (Jul 4, 2024).
Original GitHub issue: https://github.com/akashrchandran/syrics/issues/32

I checked requests from open.spotify.com and your code, adding this func, based on get_lyrics, to Spotify class is enough to make it work

import syrics.api
class Spotify(syrics.api.Spotify):
    def get_transcripts(self, episode_id: str):
        params = 'format=json'

        req = self.session.get(f'https://spclient.wg.spotify.com/transcript-read-along/v2/episode/{episode_id}', params=params)
        return req.json() if req.status_code == 200 else None
Originally created by @ghost on GitHub (Jul 4, 2024). Original GitHub issue: https://github.com/akashrchandran/syrics/issues/32 I checked requests from open.spotify.com and your code, adding this func, based on get_lyrics, to Spotify class is enough to make it work ```py import syrics.api class Spotify(syrics.api.Spotify): def get_transcripts(self, episode_id: str): params = 'format=json' req = self.session.get(f'https://spclient.wg.spotify.com/transcript-read-along/v2/episode/{episode_id}', params=params) return req.json() if req.status_code == 200 else None ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/syrics#17
No description provided.