-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video description not keeping the \n #54
Comments
Hello there, Can you provide an example search term on youtube that has search results with this working as expected? |
I think youtube intentionally only provides a small limited view of the video description in the search results. If you want the full description, you should try making another request for that specific video's metadata which should contain it in full and include newlines etc. example: https://runkit.com/talmobi/runkit-npm-yt-search-video |
It seems to be the case with all videos, but it happens for example with this one. |
This library does not use the YouTube API at all. It uses the same requests that you would make when you open youtube as a user. This is why when you enter a search term, you get the results with minimal description -- because that's how it looks like when you search for something on youtube. Your example is a specific video, not general search results. For example compare the search results for the search term "hiroyuki sawano" https://www.youtube.com/results?search_query=hiroyuki+sawano All of these results have minimal descriptions without newlines etc. These are the kind of results that this library returns, it does not use the YouTube API at all. If you need more thorough results you should try using YoutTube's own API. |
When searching for videos and looking at one's
description
attribute, we can see the line feeds are not kept. They are instead replaced with spaces. Is it the expected behavior, and if so, how to get the original description with the line feeds?The text was updated successfully, but these errors were encountered: