Skip to main content

YT_Core provides easy access to Youtube

Project description

YT_Core - an inoffical youtube api parser

[[TOC]]

Introduction

As youtube-dl is way to complicated and doesnt offer the right API for app-development.

One Example is the youtube-dl search API. You're only allowed to search for a specified amount of results.

That doesnt work for feature-complete apps. (endless scrolling)

Youtube-Dl is good for one thing: Getting the video from Youtube.

This is where yt_core comes in:

yt_core is a python library that should feel like using youtube.

Example:

Website yt_core
Going to youtube.com core = yt_core.Core()
Using the searchbar search = core.new_search()
Typing 'test' into the searchbar search.searchterm = 'test'
Pressing the searchbutton search.search()
Read the estimated results returned by youtube search.get_results_count_total()
Scrolling down to see new results search.search_continue()
Scroll through the page and see all results search.get_results()

Example Implementation

HandyYT

Current dependencies

  • requests, and its dependencies
  • Python 3.8.6 (should work on way more, currently the only version tested)

This module is currently only tested on PostmarketOS (PinePhone arm64), but it should also work on other operating systems and architectures (It's python).

Motivation

Allowing apps like NewPipe for Android, but for the PinePhone + PhoneShell. And they have to be open-source! (That's the reason for the AGPLv3 license.) In the future other platforms perhaps, as I dont see Java as a good choice for modern GUIs or Apps. (Servers perhaps, I dont know about server-java stuff)

How to use

  • Make sure you have the needed dependencies (get them via pip, or let setup.py handle them)
  • Get this project (git clone, downloading the tarball, floppies...)
  • Install it via setup.py (or adjust your python3-path to the root of the repo.)
  • Open python3 and import yt_core
  • help(yt_core) or view doc-pages if available

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_core-ralf1307-0.1.4.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

yt_core_ralf1307-0.1.4-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file yt_core-ralf1307-0.1.4.tar.gz.

File metadata

  • Download URL: yt_core-ralf1307-0.1.4.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for yt_core-ralf1307-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e073bf34cc0af7b496bf79285740007a596d502494e8ede1f1337dd09144917f
MD5 eb782a81a1980d252ecf566c6e660db8
BLAKE2b-256 660ad301684a561bdadf15f2f4e3a8f26bc0fce9d540fa70dd3c9196f1c4d8f5

See more details on using hashes here.

File details

Details for the file yt_core_ralf1307-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: yt_core_ralf1307-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for yt_core_ralf1307-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ec95231f709d8802be97ed5d3bb99e4f255c6a70231cdb6378bc5dfa2eea8a8
MD5 794507d8b3c95c3e1a7fb100de70d52e
BLAKE2b-256 d8f6cd9244911e3c17d67194292763bc5ad73675060b5587212879c98c495642

See more details on using hashes here.

Supported by

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