Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

downloading transcript for a podcast #32

Open
adamAfro opened this issue Jul 4, 2024 · 0 comments
Open

downloading transcript for a podcast #32

adamAfro opened this issue Jul 4, 2024 · 0 comments
Labels
easy to add mostly add it by the end of the day enhancement New feature or request

Comments

@adamAfro
Copy link

adamAfro commented Jul 4, 2024

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
@akashrchandran akashrchandran added enhancement New feature or request easy to add mostly add it by the end of the day labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy to add mostly add it by the end of the day enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants