Skip to main content

YouTube Extractor

Project description

ytutils

YouTube video & channel details extractor

Pypi Website

Features

  • Extract video details
  • Extract channel details

Installation

pip install ytutils

Video Extraction

Importing

from ytutils.Video import Video

Step-1

api_key = "YOUR API KEY"
vid = Video(api_key)

Step-2

try:
	vid.start(video_url="https://www.youtube.com/watch?v=hW7qJZK2UAc") # Or vid.start(video_id="hW7qJZK2UAc")
except:
	pass # Error occurred

Step-3

details = vid.result()
print(details['title'])

Channel Extraction

Importing

from ytuils.Channel import Channel

Step-1

api_key = "YOUR API KEY"
cha = Channel(api_key)

Step-2

try:
	cha.start(channel_url="https://www.youtube.com/channel/UC_yAFedtY2po4noljIqSM1w") # Or cha.start(channel_id="UC_yAFedtY2po4noljIqSM1w")
except:
	pass # Error Occurred

Step-3

details = cha.result()
print(details['title'])

Contact me

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

ytutils-0.1.0.4.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file ytutils-0.1.0.4.tar.gz.

File metadata

  • Download URL: ytutils-0.1.0.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ytutils-0.1.0.4.tar.gz
Algorithm Hash digest
SHA256 f861adde71f2f3bdadab147a201d174777d1b937fae0cf9bcf2c39cf545556fc
MD5 78d94b101b30de5fc0b341e9d4e56aa5
BLAKE2b-256 ac4b4abc03d649158c889b87d657594a4c19687720bfe218ec9bd785b5dbf6e1

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