Skip to main content

youtube url scraper with hashtag

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt_scp-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yt_scp-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file yt_scp-0.1.0.tar.gz.

File metadata

  • Download URL: yt_scp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for yt_scp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 920f0ca618c5c4271e362bce42110d810da3c5cb0733917942379e40389e983c
MD5 5748235e95508ce53c9eb4e99d43ab25
BLAKE2b-256 f979358c1a9f9d5fa52c1612820ce439e8243486c5ee8860ac3befa9842a12fb

See more details on using hashes here.

File details

Details for the file yt_scp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yt_scp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for yt_scp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb52f7d5bb1101b95df9e461de6743a7ea41e414dba9c05d0ecd9345c387104
MD5 07bfdc96ebd7c3135bfe28fa846c1f9e
BLAKE2b-256 96ec7553f756a7cd064dcb8a3347f66cc12522568a4abcacbbc85f3b8b3aee90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page