# yt-fts - 유튜브 풀텍스트 검색

> Clean Markdown view of GeekNews topic #9296. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=9296](https://news.hada.io/topic?id=9296)
- GeekNews Markdown: [https://news.hada.io/topic/9296.md](https://news.hada.io/topic/9296.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-05-31T10:46:02+09:00
- Updated: 2023-05-31T10:46:02+09:00
- Original source: [github.com/NotJoeMartinez](https://github.com/NotJoeMartinez/yt-fts)
- Points: 26
- Comments: 3

## Topic Body

- 특정 유튜브 채널들의 전체 자막들을 다운로드해서 SQLite에 저장후 검색 가능하게 해주는 커맨드 라인 도구   
- 검색결과로 해당 키워드가 나오는 비디오의 타임스탬프 URL을 제공   
- 채널 추가 및 삭제 기능으로 여러개의 채널 관리  
- 검색결과를 CSV로 저장 가능

## Comments



### Comment 16322

- Author: secret3056
- Created: 2023-06-01T09:24:49+09:00
- Points: 1

소스 볼륨이 굉장히 작은에 어떻게 했을까 봤더니  
sqlite-utils에서 굉장히 간편한 풀텍스트 검색을 제공해주네요.  
  
```py  
def search_all(text):  
    db = Database(db_name)  
  
    return list(db["Subtitles"].search(text))  
```  
  
한번 써봐야겠습니다.

### Comment 16401

- Author: seatbelts
- Created: 2023-06-06T10:41:52+09:00
- Points: 1
- Parent comment: 16322
- Depth: 1

감사합니다!

### Comment 16324

- Author: xguru
- Created: 2023-06-01T10:43:09+09:00
- Points: 1
- Parent comment: 16322
- Depth: 1

와 좋네요. 역시 sqlite 가 간단하게 뭐 만들때는 가장 좋은 것 같아요.
