Skip to main content

The YouTube Music search scraper for the Python programming language.

Project description

YouTube Music API

The YouTube Music search scraper for the Python programming language.

Installation:

  • Python 3.7 or later is required.
  • First, please make sure that the latest pip version is installed in your working environment.
pip install -U pip
  • Run the following command given below to install the package:
pip install -U YouTubeMusicAPI

Get Started

Here is an example program.

import YouTubeMusicAPI

query: str = "alan walker faded"

result = YouTubeMusicAPI.search(query)

if result:
    print(result)
else:
    print("No Result Found")

If a result for your search query is found while running the above program, it will return an dict object {"title":"...", "id": "...", "url": "...", "artwork": "...", "author": {"name": "...", "url": "..."}} ; otherwise, it will return None.

License

This Python package is licenced under the MIT License.

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

YouTubeMusicAPI-2.7.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

YouTubeMusicAPI-2.7.3-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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