Menu

Adding paste-a-link transcripts to a FastAPI app that keep working on a server
📰

Adding paste-a-link transcripts to a FastAPI app that keep working on a server

DEV Community: fastapi·Yusuf Yildiz·10 days ago
#kPceB3qi
#devtofastapi#devto#dev#code#body
Long article (844 words) — no AI summary yet.
Reading 0:00
15s threshold

Plenty of Python apps end up wanting the same feature: a user sends a YouTube, TikTok or podcast link and you need the transcript, to summarize it, index it or hand it to a model. The first version usually uses a captions library and works fine on your machine.

Then you deploy it. Requests from cloud servers get blocked or asked to sign in, so code that worked locally starts failing in production. And a lot of videos have no captions, so you also need speech-to-text, which means downloading audio and wiring up a second service.

I built Importly for this, so that's what this post uses. You send it a link and get back the transcript, the file or the metadata, and it works from servers. Here's the FastAPI version.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.