ytsearch Extractor #1349

Closed
opened 2026-02-20 23:26:34 -05:00 by deekerman · 1 comment
Owner

Originally created by @RingoTheDog on GitHub (Nov 14, 2013).

This is not really a bug, but I found it rather strange...

Was looking at the list of extractors and I tried your example: "ytsearchdate:running tortoise" (then I got confused as your examples keep changing..very nice!)

Everything worked...BUT while the resulting video:
http://www.youtube.com/watch?v=ojk53CH2Axo
DOES have the word tortoise in the title, it was not what I was expecting.
If I go to YouTube and search "running tortoise" I get video of actual tortoises...not large dieting women.

I had never tried the search YouTube search feature before, so I wasn't sure what to expect....but it did surprise me ;-)

C:\Transmogrifier>youtube-dl.py -v "ytsearchdate:running tortoise"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'ytsearchdate:running tortoise']
[debug] youtube-dl version 2013.11.13
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] query "running tortoise": Downloading page 1
[download] Downloading playlist: running tortoise
[youtube:search] playlist 'running tortoise': Collected 1 video ids (downloading
1 of them)
[download] Downloading video #1 of 1
[youtube] Setting language
[youtube] ojk53CH2Axo: Downloading video webpage
[youtube] ojk53CH2Axo: Downloading video info webpage
[youtube] ojk53CH2Axo: Extracting video information
[download] Destination: Couch to 5K - Week 6 _ Tortoise-ojk53CH2Axo.mp4
[download] 100% of 123.23MiB in 00:2833MiB/s ETA 00:001

not a biggie, but thought I'd let you know.

Originally created by @RingoTheDog on GitHub (Nov 14, 2013). This is not really a bug, but I found it rather strange... Was looking at the list of extractors and I tried your example: "ytsearchdate:running tortoise" (then I got confused as your examples keep changing..very nice!) Everything worked...BUT while the resulting video: http://www.youtube.com/watch?v=ojk53CH2Axo DOES have the word tortoise in the title, it was not what I was expecting. If I go to YouTube and search "running tortoise" I get video of actual tortoises...not large dieting women. I had never tried the search YouTube search feature before, so I wasn't sure what to expect....but it did surprise me ;-) C:\Transmogrifier>youtube-dl.py -v "ytsearchdate:running tortoise" [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'ytsearchdate:running tortoise'] [debug] youtube-dl version 2013.11.13 [debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1 [debug] Proxy map: {} [youtube] query "running tortoise": Downloading page 1 [download] Downloading playlist: running tortoise [youtube:search] playlist 'running tortoise': Collected 1 video ids (downloading 1 of them) [download] Downloading video #1 of 1 [youtube] Setting language [youtube] ojk53CH2Axo: Downloading video webpage [youtube] ojk53CH2Axo: Downloading video info webpage [youtube] ojk53CH2Axo: Extracting video information [download] Destination: Couch to 5K - Week 6 _ Tortoise-ojk53CH2Axo.mp4 [download] 100% of 123.23MiB in 00:2833MiB/s ETA 00:001 not a biggie, but thought I'd let you know.
Author
Owner

@phihag commented on GitHub (Nov 14, 2013):

ytsearchdate returns the search results ordered by date (like when you select Filters -> Sort By -> Upload Date). This is useful if you want the oldest video(s) for a topic, or want the oldest videos first (say, you're creating a statistic about tortoise speeds since the 1990s). In this case, the couch-to-5k runners seem to have preempted the tortoise lovers.

Use ytsearch: to get the most relevant instead of the oldest video first. This seems to result in an ample amount of shelled low-speed runners:

$ youtube-dl 'ytsearch3:running tortoise' --get-title
Tortoise Running!
Tortoise running after a shoe!
Awsome running tortoise
@phihag commented on GitHub (Nov 14, 2013): `ytsearchdate` returns the search results ordered by date (like [when you select `Filters -> Sort By -> Upload Date`](http://www.youtube.com/results?search_sort=video_date_uploaded&search_query=running+tortoise)). This is useful if you want the oldest video(s) for a topic, or want the oldest videos first (say, you're creating a statistic about tortoise speeds since the 1990s). In this case, the couch-to-5k runners seem to have preempted the tortoise lovers. Use `ytsearch:` to get the _most relevant_ instead of the oldest video first. This seems to result in an ample amount of shelled low-speed runners: ``` $ youtube-dl 'ytsearch3:running tortoise' --get-title Tortoise Running! Tortoise running after a shoe! Awsome running tortoise ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#1349
No description provided.