Comments (9)
No such a feature is currently planned, but I'll leave the issue open in case anyone is willing to submit a patch for it.
from youtube-dl.
I will have a look at implementing this.
from youtube-dl.
Hey rg3 is this the right spot to find the comments?:
"video_webpage = urllib2.urlopen(request).read()"
from youtube-dl.
I've noticed that --get-description exists, but appears to get a truncated version. I hacked it in my own copy to print out the description text, truncated as it is, along with the URL so I can match 'em with the videos I downloaded in a separate run.
Also, it forces --silent and --simulate on.
from youtube-dl.
youtube-dl returns the shortened title for youtube links because it parses <meta name="content">
with regular expressions. Instead, it should parse the document with an HTML parser (or fake on by removing <scripts>
and then using an XML parser) and search for <p id="eow-description">
, and return the textual contents of that element.
from youtube-dl.
I wonder if the YouTube Data API at all useful for this...
from youtube-dl.
Retrieving the description over the Data API is trivial, but we'd have to request the web page anyway since the Data API does not give us the URL of the video. Also, we'd have to deal with a number of corner cases (authentication, age-restricted) twice then. Fortunately, HTML parsing in Python is really easy - if you have at least Python 2.6 (or lxml installed).
I implemented full youtube description retrieval in my fork (which also includes blip.tv support). You can also apply the diff.
[update:] Additionally, I added a --write-description
flag. Set it to have a .description
file written along with the video file itself. (diff)
I'd love to hear your feedback - does it work for you?
from youtube-dl.
Implemented with --write-description
.
from youtube-dl.
@phihag: The --write-description was merged in, but it doesn't look like your revised "eow-description" lookup made it in. Worth reopening the issue for that? Was just something I was about to look into doing myself. [EDIT: Nevermind, looks like I was wrong. Now to figure out why I'm not getting the full description.]
from youtube-dl.
Related Issues (20)
- [bogus: wrong project] How do I best hook my stream discontinuity handler into ytdl? HOT 2
- Broken subtitles. Timeline isn't correct. All subtitles grouped in two duplicate lines at the top of the VTT file HOT 2
- Can't download from TikTok (again) HOT 4
- Access Denied HOT 1
- How to download the youtube number-only video HOT 1
- Unable to extract uploader id HOT 9
- Trying to download an episode from crunchyroll results in a 403 HOT 5
- I'd father's house HOT 1
- Download fails youtube-dl-2021.12.17-2.el8.noarch HOT 1
- android-(Bug) The following content is not available on this app. Watch this content on the latest version of YouTube HOT 5
- Why not update the version number? HOT 2
- Download videos from xvideos.com HOT 1
- DL fails "unable to extract uploader id" HOT 1
- Video download fails with HTTP 421 error when downloading key file HOT 1
- Can't acess the link of "download an .exe file" HOT 3
- discord.py music bot HOT 1
- downloading from udemy HOT 1
- YouTube HOT 1
- Rumble: Got error: HTTP Error 504: Gateway Time-out. Retrying (1/10)... HOT 1
- Parse Bilibili Videos - HTTP Error 403 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-dl.