Skip to content

Address youtube throttling #206

Description

@LeMurphant

https://github.com/StampyAI/alignment-research-dataset/actions/runs/13484459241/job/37673819212

Could not retrieve a transcript for the video https://www.youtube.com/watch?v=429 Client Error: Too Many Requests for url: https://www.google.com/sorry/index?continue=https://www.youtube.com/watch%3Fv%3DMcc6wYfzNFY&q=EgQUK_erGPuS7b0GIjBxpwjuKYhRZXH1XcisDW0bfVD5eF5rlmnfJpVQNtb8Z4_4OVncK2Wqw1pz__WcZKQyAXJaAUM! This is most likely caused by:
Request to YouTube failed: Mcc6wYfzNFY
If you are sure that the described cause is not responsible for this error and that a transcript should be retrievable, please create an issue at https://github.com/jdepoix/youtube-transcript-api/issues. Please add which version of youtube_transcript_api you are using and provide the information needed to replicate the error. Also make sure that there are no open issues which already describe your problem!

It seems like we should retry with some exponential backoff. I see that align_data/embeddings/embedding_utils.py uses the tenacity library, should it also be used here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions