Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
datakund committed Dec 10, 2020
1 parent e622310 commit b931e1b
Show file tree
Hide file tree
Showing 12 changed files with 156 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Docs/source/auto_like.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**************************************************
Auto Like
**************************************************
It likes the video passed in ``video_url``.

Here is the code:-

.. py:function:: youtube.auto_like(video_url="video_url")
:param str video_url: Video url which need to be liked
:return: {}
:rtype: dict
13 changes: 13 additions & 0 deletions Docs/source/auto_subscribe.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**************************************************
Auto Subscribe
**************************************************
It subscribes the channel passed in ``channel_url``.

Here is the code:-

.. py:function:: youtube.auto_subscribe(channel_url="channel_url")
:param str channel_url: Channel url which need to be subscribed
:return: {}
:rtype: dict
12 changes: 12 additions & 0 deletions Docs/source/channel_videos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**************************************************
Channel Videos
**************************************************
It fetches the channel videos from page opened in browser.

Here is the code:-

.. py:function:: youtube.channel_videos()
:return: [{'Title': 'Title', 'Video_Link': 'Video_Link'}]
:rtype: list
11 changes: 11 additions & 0 deletions Docs/source/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ Functions
:maxdepth: 2

get_transcript
video_comments
auto_like
auto_subscribe
get_video
login
watch_video
upload
channel_videos
watch_later_videos
skip_ad
live_chat
13 changes: 13 additions & 0 deletions Docs/source/get_video.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**************************************************
Get Video
**************************************************
It fetches the information of video passed in ``video_url``.

Here is the code:-

.. py:function:: youtube.get_video(video_url="video_url")
:param str video_url: Video url whose information need to be fetched
:return: {'Title': 'Title', 'Publish_Date': 'Publish_Date', 'Subscribers': 'Subscribers', 'Desc': 'Desc', 'Views': 'Views', 'DisLikes': 'DisLikes', 'Comments': 'Comments', 'ChannelLink': 'ChannelLink', 'Duration': 'Duration', 'Likes': 'Likes', 'ChannelName': 'ChannelName'}
:rtype: dict
12 changes: 12 additions & 0 deletions Docs/source/live_chat.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**************************************************
Live Chat
**************************************************
It fetches the live chat of any video opened in browser.

Here is the code:-

.. py:function:: youtube.live_chat()
:return: [{'Message': 'Message', 'User': 'User', 'Column A': 'Column A'}]
:rtype: list
14 changes: 14 additions & 0 deletions Docs/source/login.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**************************************************
Login
**************************************************
It logins to youtube through the credentials passed in ``username`` and ``password``.

Here is the code:-

.. py:function:: youtube.login(username="username",password="password")
:param str username: Account username
:param str password: Account password
:return: {}
:rtype: dict
12 changes: 12 additions & 0 deletions Docs/source/skip_ad.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**************************************************
Skip Ad
**************************************************
It waits for the Skip Ad button and then clicks on it.

Here is the code:-

.. py:function:: youtube.skip_ad()
:return: {}
:rtype: dict
18 changes: 18 additions & 0 deletions Docs/source/upload.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
**************************************************
Upload
**************************************************
It uploads the video to youtube.

Here is the code:-

.. py:function:: youtube.upload(title="title",description="description",kid_type="kid_type",video_path="video_path",playlist="playlist",type="type")
:param str title: Video Title
:param str description: Description of video
:param str kid_type: e.g No, it's not Made for Kids
:param str video_path: Full Video file path
:param str playlist:
:param str type: e.g public, private
:return: {'VideoLink': 'VideoLink'}
:rtype: dict
12 changes: 12 additions & 0 deletions Docs/source/video_comments.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**************************************************
Video Comments
**************************************************
It fetches the comments of the video opened in browser.

Here is the code:-

.. py:function:: youtube.video_comments()
:return: [{'User': 'User', 'Column A': 'Column A', 'Comment': 'Comment', 'UserLink': 'UserLink', 'Replies': 'Replies'}]
:rtype: list
12 changes: 12 additions & 0 deletions Docs/source/watch_later_videos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**************************************************
Watch Later Videos
**************************************************
It fetches the videos from watch later playlist.

Here is the code:-

.. py:function:: youtube.watch_later_videos()
:return: [{'Title': 'Title', 'Video_Link': 'Video_Link'}]
:rtype: list
14 changes: 14 additions & 0 deletions Docs/source/watch_video.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**************************************************
Watch Video
**************************************************
It watch the video passed in ``video_url`` for the amount of time passed in ``time``.

Here is the code:-

.. py:function:: youtube.watch_video(time="time",video_url="video_url")
:param str time: Amount of time to waatch the video
:param str video_url: Video url which need to be watched
:return: {}
:rtype: dict

0 comments on commit b931e1b

Please sign in to comment.