Live data from Hacker News

Show HN: YouTube Full Text Search – Search all of a channel from the commandline

github.com

161–170 of 172 posts

Re: Show HN: YouTube Full Text Search – Search all of a channel from the commandline

#161
post #128

This is great! I had made something like this for my own use, but it was way more complicated. It took a user account, downloaded all the liked videos, ran it through some model and vectorized it, and then you could use natural language search to describe a scene in your history of liked videos and it would show you the timestamp and the thumbnail (with the link to start watching from the timestamp). I ended up takin…

Is it as effective as what you did? Did you need an API key for yours to work? What was your cost per video?

Re: Show HN: YouTube Full Text Search – Search all of a channel from the commandline

#163

I have actually been working on a full blow full-text search engine for youtube by transcripts as a web application: https://clipbase.xyz I'd love to know what y'all think!

Nice. Possible (?) improvement: provide a bit of context with each clip. For example: 2 seconds before the searched bit, and 2 seconds after.

Re: Show HN: YouTube Full Text Search – Search all of a channel from the commandline

#166
post #160
post #45

Earlier quoted context omitted.

On web search, you can append &lr=lang_it to the URL. Maybe make it into a Chrome extension.

This does not seem to be doing anything. It's also being removed from the url bar when the page loads.

Weird. It works for me (on google.com), including from an incognito window.

Re: Show HN: YouTube Full Text Search – Search all of a channel from the commandline

#167
post #38

This will come in handy. I’ve always wanted to count how many times Lex Fridman has referred to something as a beautiful dance.

I want to do a word count on the word "love".

> yt-fts search "love" --channel "Lex Fridman" | grep "love" | wc -l

> 7060

Re: Show HN: YouTube Full Text Search – Search all of a channel from the commandline

#168
post #149

It looks like you're running searches using LIKE: https://github.com/NotJoeMartinez/yt-fts/blob/050981c0519a96... SQLite has a really power full-text search mechanism built in - FTS5. It can handle things like stemming and stop words and relevance ranking. My sqlite-utils Python library includes helper methods for setting that up: https://sqlite-utils.datasette.io/en/stable/python-api.html#...

Thank you! I was able to integrate this into the project[1]. I'm also looking into using your openai-to-sqlite[2] library for semantic search.

[1]https://github.com/NotJoeMartinez/yt-fts/pull/25 [2]https://github.com/simonw/openai-to-sqlite

Re: Show HN: YouTube Full Text Search – Search all of a channel from the commandline

#170

Earlier quoted context omitted.

I want to do a word count on the word "love".

> yt-fts search "love" --channel "Lex Fridman" | grep "love" | wc -l > 7060

This comment blew my mind.
Post reply on HN