4 ms·
Why don't they split youtube-dl in two parts: - The extractors part (all the scrappers basically) - The cli tool What would be wonderful is that the extracto
by polote 5y ago
Why don't they split youtube-dl in two parts:
- The extractors part (all the scrappers basically)
- The cli tool
What would be wonderful is that the extractors part is splitted out, so that anyone can use it without using youtube-dl. That would be much easier to update it too, each extractor is independent, so it is only a question, does this scrapper (extractor) works or not.
The next step would be to have a multi-language format to describe a scrapper, instead of being coded in Python. But no idea if this is possible or maybe that would make things much more complex
- FiloSottile 5y agoThat is mostly already the case, you can invoke the extractors through the Python API or through the CLI and do the download yourself. Extractors regularly require custom logic, so they can’t be described in anything else than a programming language.
- polote 5y agoBeing two different projects has advantages, especially when one part (need to) moves much faster. The fact that some requires custom logic doesn't prove that you need a programming language, it is just custom logic compared to the standard framework.
- colejohnson66 5y agoIf you’re implementing custom logic, why not just make it easy on yourself and use a proper programming language. Trying to invent custom logic systems gives us cmake.
- aexl 5y agoI have proposed this some years ago (https://github.com/ytdl-org/youtube-dl/issues/14646 https://github.com/ytdl-org/youtube-dl/issues/14646), but it didn't get much attention from the maintainers. It has been previously rejected in 2013 already (https://github.com/ytdl-org/youtube-dl/issues/1185 https://github.com/ytdl-org/youtube-dl/issues/1185).
- colethedj 5y agoyt-dlp does support "3rd party extractors" (in the form of plugins): https://github.com/yt-dlp/yt-dlp#plugins https://github.com/yt-dlp/yt-dlp#plugins