Skip to main content

A lightweight YouTube data scraper.

Project description

youthon

version licence made with love

A lightweight YouTube data scraper.

Installing

pip

To install from PyPI with pip:

$ pip install youthon

poetry

You can add youthon as a dependency with the following command

$ poetry add youthon

Usage Examples

import youthon

channel = youthon.Channel("https://www.youtube.com/@PewDiePie")

print(channel.name)  # PewDiePie
print(channel.description)  # I make videos.
print(channel.channel_url)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw
print(channel.profile_photo_url)  # https://yt3.googleusercontent.com/5oUY3tashyxfqsjO5SGhjT4dus8FkN9CsAHwXWISFrdPYii1FudD4ICtLfuCw6-THJsJbgoY=s900-c-k-c0x00ffffff-no-rj
print(channel.channel_id)  # UC-lHJZR3Gqxm24_Vd_AJ5Yw

# The following two variables may produce different results depending on your geolocation.
print(channel.subscribers_count)
print(channel.video_count)

print(channel.videos_page)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw/videos
print(channel.shorts_page)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw/shorts
print(channel.community_page)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw/community
print(channel.featured_channels_page)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw/channels
print(channel.playlists_page)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw/playlists
print(channel.about_page)  # https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw/about

About the project

Authors

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

License

The project is MIT licensed.

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

youthon-0.2.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

youthon-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file youthon-0.2.0.tar.gz.

File metadata

  • Download URL: youthon-0.2.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.1 Windows/10

File hashes

Hashes for youthon-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f541f12d85a2e0b952531c38545cc5b02c2c5efd2c19c4e9b28f64dbb07ca5e1
MD5 1b977845d86e4d17b196c90fb758f253
BLAKE2b-256 a2d7b5d8fd9200530816d4ccf3cf8d95c7c8b7eeeb7551698e54dd2e4f335dc9

See more details on using hashes here.

File details

Details for the file youthon-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: youthon-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.1 Windows/10

File hashes

Hashes for youthon-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78fefd44db8e1b4dbfa1841c15f87e372bff911678d835e0529086dd96bb9194
MD5 05277a5a124895478cdaa78b0d08d00e
BLAKE2b-256 61220104a1095e889b4fd084704ccfcaae396cf6cdb8e24370ef9812b22d086a

See more details on using hashes here.

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