Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Adding source instead of URL #5768
Comments
|
The issue is missing some info, explain with detail what do you want to do. What I understand is that you want to pass the webpage source code and youtube-dl should process it and extract all the required info. Am I right? |
|
You are exactly right. Is this possible? |
|
Thanks for adding the label. Is there a simple way for me to do this by myself before a parameter is added (or if a parameter even ever is added)? |
|
See #4551 for the reasons why we won't add support for this option. Relevant comments: #4551 (comment) and #4551 (comment). |
|
The reason to why it wasn't added was because multiple requests were made. In other words, I only input the source of the first page and youtube-dl will go from there (retrieving any additional files like the DASH manifest). The reason to why I want to input the source instead of the URL is that I need to log the page source. |
Use |
|
I'll have to look more into --write-pages, thanks.
This won't be a problem as users could specify both the URL and the source in order to have the software use the right extractor. I was also assuming that the first request was sent in a globally and depending on the site the further requests would be made in the extractor. If this is the case then a simple if statement checking for the parameter would solve the trick, wouldn't it? |
No, we iterate over all the extractors and check if the url can be handled, the webpage requests are made by the extractors. Although for urls that don't have a matching extractor, the GenericIE will look into webpage source and try to find embedded videos. |
|
That explains why it would be complicated to add. Is there also an easy way of knowing if a YouTube video had an encrypted signature or not? |
I think that looking for |
But is this possible through youtube-dl? |
|
There's no explicit info about it, since you don't need it to use the json output (handling the signatures is youtube-dl's job). You can try looking for It could probably added, but I don't see why it would be useful. Feel free to open a new issue of pull reuest |
I just tried this and there wasn't a difference between an encrypted signature and a regular one. The parameter Example: |
|
I opened a new issue as this is getting off-topic. |
Is it possible to enter the source code and have the extractor continue (additional requests, etc) from there?