An open API service indexing awesome lists of open source software.

https://github.com/zeroniki/yt-search


https://github.com/zeroniki/yt-search

beautifulsoup4 invidious mpv python3 requests-python scraper-python yt-search-cli

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# yt-search (Linux) (RU)
Позволяет прсмотривать видео не заходя на сам youtube

Библеотеки задействованны:

- Bs4 ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/beautifulsoup4)

- request ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/requests)

- pyfzf ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyfzf)

## Перед устоновкой
Установите медиаплеер `mpv` и `yt-dlp`

## Устоновка

склонируйтие репозиторий и перейдите в него:
```
git clone https://github.com/ZeroNiki/yt-search.git
cd yt-search
```

Установите зависимости:
```
pip install -r requirements.txt
```
По желанию можете делать это в виртуальном окружении

Запустите файл ytsearch.py:
```
python3 ytsearch.py
```

### Channel.py
Для того чтобы просматривать видео с любимых каналов, вы должны найти их на одном из сайтов [Invidious](https://docs.invidious.io/instances/), скопируйте сылку на них и вствьте в файл `channel.txt`

### Конфигурация mpv
Для изменения качетсва видео установите расширение [mpv-youtube-quality](https://github.com/jgreco/mpv-youtube-quality)
! В файле `youtube-quality.lua` измените строчку:
```lua
path = "youtube-dl"
```
На
```lua
path = "yt-dlp"
```

Также можете скачать [mpv_sponsorblock](https://github.com/po5/mpv_sponsorblock)

---------------

# yt-search (Linux) (EN)
Allows you to watch videos without going to YouTube itself

Libraries involved:

- Bs4 ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/beautifulsoup4)

- request ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/requests)

- pyfzf ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyfzf)

## Before installation
Install media player `mpv`

## Installation

Clone the repository and go to it:
```
git clone https://github.com/ZeroNiki/yt-search.git
cd yt-search
```

Install dependencies:
```
pip install -r requirements.txt
```
If you wish, you can do this in a virtual environment.

Run the ytsearch.py file:
```
python3 ytsearch.py
```

### Channel.py
In order to view videos from your favorite channels, you must find them on one of the sites [Invidious](https://docs.invidious.io/instances/), copy the link to them and paste them into the `channel.txt` file

### MPV configuration
For change quality, you may download extension: [mpv-youtube-quality](https://github.com/jgreco/mpv-youtube-quality)
! In file `youtube-quality.lua` change value:
```lua
path = "youtube-dl"
```
To:
```lua
path = "yt-dlp"
```

Also you may download extension [mpv_sponsorblock](https://github.com/po5/mpv_sponsorblock)