Skip to content

Find target keyword mention(s) from YouTube videos. Similar to Mention but for videos. Sponsored by SerpApi.

Notifications You must be signed in to change notification settings

dimitryzub/youtube-mention-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Mention(s) Tracker

Streamlit YouTube Videos Mention Tracker Demo

Purpose/Idea

The main idea is taken from a great tool called Mention. This demo shows the same idea but for YouTube videos only by transcribing videos (even if the video without captions).

Scenario: user wants to track someone said certain keywords like "Serp Api". Or a query "switching from iphone to..." and target keyword like "poor" (for poor quality), or "No..." (no support for certain feature that android has) and similar keywords that may identify reasons of switching.

Another example is a certain search query in a company niche and a target keyword to look in those videos that may benefit company by getting more context out of it.

Things to improve
1. Async videos download or reading audio as a stream instead of saving?
2. Transcribing as a stream. Whisper can't do it at the time this demo is written. https://github.com/openai/whisper/discussions/2#discussioncomment-3702403
3. Run searches with cron job. Identify new videos for the same query(ies). 
4. Speed up pagination (if using) with multithreading (?). Commented out in the code to show how pagination done without multithreading. https://github.com/serpapi/google-search-results-python#batch-asynchronous-searches
5. Remove code duplication. Like creating centered button, SAVE_OPTION conditions (lines 258-311)

Video Example

youtube-videos-tracker.mp4

This is how transcribed results (if any) would look like:

transcribed-results

Usage

This section if you want to use your own API key. The demo on streamlit doesn't require you to use any API key.

Clone repository:

$ git clone https://github.com/dimitryzub/youtube-mention-tracker.git

Install dependencies:

$ cd youtube-mention-tracker && pip install -r requriements.txt

Add SerpApi api key for current shell and all processes started from current shell:

# used to parse youtube videos, has a plan of 100 free searches
$ export SERPAPI_API_KEY=<your-api-key>

Run the app:

$ cd youtube-tracker && streamlit run tracker.py

Sponsored by SerpApi 🧡

About

Find target keyword mention(s) from YouTube videos. Similar to Mention but for videos. Sponsored by SerpApi.

Topics

Resources

Stars

Watchers

Forks

Languages