Allows users to quickly find the desired text in YouTube videos by showing the time, minute, and second intervals where the desired word or sentence appears in videos with subtitles or auto-generated subtitles.
git clone https://github.com/mercan/Youtube-Subtitles.git cd Youtube-SubtitlesThis command builds a Docker image named youtube-subtitles containing your project code.
make buildThis command starts the Docker container based on the built image. It maps the container port 8080 to the host port 8080 by default, but you can specify a different port number by setting the PORT environment variable.
make run make run PORT=3000To stop the running Docker container, execute:
make stopTo view the logs of the running Docker container, use:
make logsTo remove the Docker image and container, execute:
make clean
You can use the following Makefile commands to manage the Docker image:
- make build: Builds the Docker image.
- make run: Runs the Docker image.
- make stop: Stops the running Docker container.
- make logs: Shows the logs of the Docker container.
- make clean: Stops and removes any running container and the built image.
- make help: Displays a help message about available commands.
Note: Make sure you have Docker installed and running on your system to use these commands.
GET /subtitles?url=YoutubeVideoURL&text=SearchTerm| Parameter | Type | Description |
|---|---|---|
url |
string |
Required. Youtube Video URL. |
text |
string |
Required. The word/sentence you want to find in the video. |
Find the timestamps of the word "Hello" in the following YouTube video:
curl -X GET "http://localhost:8080/subtitles?url=https://www.youtube.com/watch?v=YQHsXMglC9A&text=Hello"This request will return a JSON response with the timestamps where the word "Hello" appears in the video.