Metadata-Version: 2.2
Name: yt_scp
Version: 0.1.0
Summary: youtube url scraper with hashtag
Home-page: https://github.com/mj6671/yt_scp
Author: Mahendran
Author-email: mahendranj927@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: selenium>=4.0.0
Requires-Dist: webdriver-manager>=4.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# YouTube Scraper

A Python module to scrape YouTube videos based on a search query. The module allows users to filter videos based on whether they are music videos or live streams.

## Features

- Search YouTube for videos based on a query.
- Filter results to include only music videos, live streams, or general videos.
- Output URLs of relevant videos.

## Requirements

- Python 3.7+
- Google Chrome and ChromeDriver
- Python libraries: `selenium`, `webdriver-manager`

### Install dependencies:

```
pip install selenium webdriver-manager
```
# Usage
## General Usage:
```
from yt_scp import youtube_scrape

query = "Python tutorials"
urls = youtube_scrape(query=query, max_results=5, music=False, live=False)
for i, url in enumerate(urls, start=1):
    print(f"Video {i}: {url}")
```
## Music Videos Only:
```
from yt_scp import youtube_scrape

query = "Vijay songs"
urls = youtube_scrape(query=query, max_results=5, music=True, live=False)
for i, url in enumerate(urls, start=1):
    print(f"Music Video {i}: {url}")
```
## Live Videos Only:
```
from yt_scp import youtube_scrape

query = "Vijay live"
urls = youtube_scrape(query=query, max_results=5, music=False, live=True)
for i, url in enumerate(urls, start=1):
    print(f"Live Video {i}: {url}")
```
#  License
## This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

