{ "info": { "author": "hairygeek", "author_email": "hairygeek@yandex.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7" ], "description": "yt_lib: Young YouTube library\n==========================\nyt_lib is the unofficial library for YouTube, which supports operations with likes, subscriptions, comments.\n```\n>>> from yt_lib import states\n>>> from yt_lib import YoutubeClient\n>>> client = YoutubeClient(cookies=cookies)\n>>> client.init_session()\n>>> client.subscribe('UCtinbF-Q-fVthA0qrFQTgXQ', states.SubscribeAction.SUBSCRIBE)\n\n```\nFeature Support\n---------------\nThe library begins to take its first steps, so the list is small.\n- Rates (like, dislikes and take back)\n- Subscriptions (and unsubscribes)\n- Writing comments\n\nInstallation\n================================\nTo install yt_lib, simply run this simple command in your terminal of choice:\n\n $ pip install yt_lib\n\n\nyt_lib is actively developed on GitHub, where the code is [always available](https://github.com/hairygeek/yt_lib).\n\nYou can either clone the public repository:\n\n $ git clone https://github.com/hairygeek/yt_lib.git\n\nQuickstart\n================================\n\nFirst make sure thar yt_lib is installed.\n\nLet's get started with some simple examples.\n\nSubscribes\n----------\nBegin by importing the ``yt_lib`` and ``yt_lib.states`` modules:\n\n```\n>>> import yt_lib\n>>> from yt_lib import states\n```\n\nNow let's create YouTubeClient, this requires youtube cookies. Cookies required to work: apisid,\nconsent, hsid, login_info, pref, sapisid, sid, sidcc, ssid, visitor_info1_live. Imagine that we already have them:\n\n```\n>>> client = YoutubeClient(cookies=cookies)\n```\n\nNow let's initialize the session. Nothing will work without it:\n\n```\n>>> client.init_session()\n```\n\nNow we can subscribe to the channel. for this we need a type of subscription (unsubscribe / subscription), we will take it from the module ``states``:\n\n```\n>>> client.subscribe('UCtinbF-Q-fVthA0qrFQTgXQ', states.SubscribeAction.SUBSCRIBE)\n \n```\n\nWe got an response. In our case, this is SUCCESS, which means that the subscription was successful.\n\nRates\n--------------------\nIn the same way we can like:\n\n```\n>>> client.rate('V6Y-ahQFQDA', states.LikeAction.LIKE)\n \n```\n\nor dislike:\n\n```\n>>> client.rate('V6Y-ahQFQDA', states.LikeAction.DISLIKE)\n \n```\n\nor take action back:\n\n```\n>>> client.rate('V6Y-ahQFQDA', states.LikeAction.TAKE_BACK)\n \n```\n\nThat's not all, but l'm too lazy to describe the rest. See the description of methods.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hairygeek/yt_lib", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "yt-lib", "package_url": "https://pypi.org/project/yt-lib/", "platform": "", "project_url": "https://pypi.org/project/yt-lib/", "project_urls": { "Homepage": "https://github.com/hairygeek/yt_lib" }, "release_url": "https://pypi.org/project/yt-lib/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Young YouTube library", "version": "0.0.1" }, "last_serial": 5671122, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a156f0e8be3318ae89a5e84ad34b83d1", "sha256": "b651d3e7a2b6c2555560e70a1798baeef6a3b84d38a2b1046fb06c914b398182" }, "downloads": -1, "filename": "yt_lib-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a156f0e8be3318ae89a5e84ad34b83d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5668, "upload_time": "2019-08-13T10:14:12", "url": "https://files.pythonhosted.org/packages/92/ae/297ac23b6ebcf683b22524aeec1050657d8c8014e29502f12ae371246351/yt_lib-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a156f0e8be3318ae89a5e84ad34b83d1", "sha256": "b651d3e7a2b6c2555560e70a1798baeef6a3b84d38a2b1046fb06c914b398182" }, "downloads": -1, "filename": "yt_lib-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a156f0e8be3318ae89a5e84ad34b83d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5668, "upload_time": "2019-08-13T10:14:12", "url": "https://files.pythonhosted.org/packages/92/ae/297ac23b6ebcf683b22524aeec1050657d8c8014e29502f12ae371246351/yt_lib-0.0.1.tar.gz" } ] }