Skip to content
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

likes and dislikes #2362

Closed
davidhedlund opened this issue Feb 10, 2014 · 8 comments
Closed

likes and dislikes #2362

davidhedlund opened this issue Feb 10, 2014 · 8 comments
Labels

Comments

@davidhedlund
Copy link

@davidhedlund davidhedlund commented Feb 10, 2014

To save some further hundreds of working hours I would be glad if someone could add an option to filter out searches by minimum likes, maximum dislikes, and likes:dislikes ratio.

Everyone would love to be able to sort out the best tracks on youtube automatic.

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Feb 10, 2014

In fact, I've allready emailed YouTube to add likes and dislikes next to views, but they didn't respond.

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Feb 10, 2014

minimum likes:dislikes ratio*

@jaimeMF jaimeMF added the request label Feb 16, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 10, 2015

Since youtube-dl 2015.02.10.2 you can use the --match-filter option, for example:

$ youtube-dl --ignore-config 'ytsearch10:Gangnam style' --match-filter 'view_count > 1000000000' --test
[youtube:search] query "Gangnam style": Downloading page 1
[download] Downloading playlist: Gangnam style
[youtube:search] playlist Gangnam style: Collected 10 video ids (downloading 10 of them)
[download] Downloading video 1 of 10
[youtube] 9bZkp7q19f0: Downloading webpage
[youtube] 9bZkp7q19f0: Extracting video information
[youtube] 9bZkp7q19f0: Downloading DASH manifest
[download] Destination: PSY - GANGNAM STYLE (강남스타일) M_V-9bZkp7q19f0.mp4
[download] 100% of 10.00KiB in 00:00
[download] Downloading video 2 of 10
[youtube] mIQToVqDMb8: Downloading webpage
[youtube] mIQToVqDMb8: Extracting video information
[youtube] mIQToVqDMb8: Downloading DASH manifest
[download] Gangnam Style Official Music Video - 2012 PSY with Oppan Lyrics & MP3 Download does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 3 of 10
[youtube] byScdHbEwHE: Downloading webpage
[youtube] byScdHbEwHE: Extracting video information
[youtube] byScdHbEwHE: Downloading DASH manifest
[download] Pocoyo Gangnam Style HD does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 4 of 10
[youtube] CH1XGdu-hzQ: Downloading webpage
[youtube] CH1XGdu-hzQ: Extracting video information
[youtube] CH1XGdu-hzQ: Downloading DASH manifest
[download] PSY- Gangnam Style (Official Music Video) does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 5 of 10
[youtube] wcLNteez3c4: Downloading webpage
[youtube] wcLNteez3c4: Extracting video information
[youtube] wcLNteez3c4: Downloading DASH manifest
[download] PSY (ft. HYUNA) 오빤 딱 내 스타일 does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 6 of 10
[youtube] kpZhZAr1cQU: Downloading webpage
[youtube] kpZhZAr1cQU: Extracting video information
[youtube] kpZhZAr1cQU: Downloading DASH manifest
[download] PSY싸이 - GANGNAM STYLE (강남스타일) Waveya 웨이브야 Korean dance team does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 7 of 10
[youtube] mP1DPTY4Y7o: Downloading webpage
[youtube] mP1DPTY4Y7o: Extracting video information
[youtube] mP1DPTY4Y7o: Downloading DASH manifest
[download] Baby Gangnam Style (Official Video) does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 8 of 10
[youtube] rX372ZwXOEM: Downloading webpage
[youtube] rX372ZwXOEM: Extracting video information
[youtube] rX372ZwXOEM: Downloading DASH manifest
[download] PSY - GANGNAM STYLE @ Summer Stand Live Concert does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 9 of 10
[youtube] LZCKHjcLjCk: Downloading webpage
[youtube] LZCKHjcLjCk: Extracting video information
[youtube] LZCKHjcLjCk: Downloading DASH manifest
[download] The Walking Dead - Gangnam Style does not pass filter view_count > 1000000000, skipping ..
[download] Downloading video 10 of 10
[youtube] ftXBrr7vwho: Downloading webpage
[youtube] ftXBrr7vwho: Extracting video information
[youtube] ftXBrr7vwho: Downloading DASH manifest
[download] HULK Does GANGNAM STYLE does not pass filter view_count > 1000000000, skipping ..

Dou you really want to filter by likes:dislikes ratio?

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Feb 10, 2015

Yes. That is useful.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 11, 2015

For youtube.com there's a field in the webpage called avg_rating that seems to be (I only tested with two videos) ≈ likes/(likes+dislikes) * 5. Would that be enough for you?

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Feb 11, 2015

That will be good. Thank you.

@jaimeMF jaimeMF closed this in 2d30521 Feb 11, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 11, 2015

In the next version you'll be able to use something like --match-filter 'average_rating > 4'.

@davidhedlund
Copy link
Author

@davidhedlund davidhedlund commented Feb 11, 2015

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.