@@ -23,9 +23,9 @@ def get_channel(
23
23
Since there is a few type's of channel url's, you can use the one you want
24
24
by passing it here instead of using ``channel_id``.
25
25
limit (``int``, *optional*):
26
- Limit to number of videos you want to get.
26
+ Limit the number of videos you want to get.
27
27
sleep (``int``, *optional*):
28
- Time to sleep between api calls to youtube in order to prevent getting blocked. Defaults to `1 `.
28
+ Seconds to sleep between API calls to youtube, in order to prevent getting blocked. Defaults to ``1` `.
29
29
sort_by (``str``, *optional*):
30
30
In what order to retrive to videos. Pass one of the following values.
31
31
``"newest"``: Get the new videos first.
@@ -56,9 +56,9 @@ def get_playlist(playlist_id: str, limit: int = None, sleep: int = 1) -> Generat
56
56
playlist_id (``str``):
57
57
The playlist id from the playlist you want to get the videos for.
58
58
limit (``int``, *optional*):
59
- Limit to number of videos you want to get.
59
+ Limit the number of videos you want to get.
60
60
sleep (``int``, *optional*):
61
- Time to sleep between api calls to youtube in order to prevent getting blocked. Defaults to `1 `.
61
+ Seconds to sleep between API calls to youtube, in order to prevent getting blocked. Defaults to ``1` `.
62
62
"""
63
63
64
64
url = f'https://www.youtube.com/playlist?list={ playlist_id } '
@@ -75,9 +75,9 @@ def get_search(query: str, limit: int = None, sleep: int = 1, sort_by: str = 're
75
75
query (``str``):
76
76
The term you want to search for.
77
77
limit (``int``, *optional*):
78
- Limit to number of videos you want to get.
78
+ Limit the number of videos you want to get.
79
79
sleep (``int``, *optional*):
80
- Time to sleep between api calls to youtube in order to prevent getting blocked. Defaults to `1 `.
80
+ Seconds to sleep between API calls to youtube, in order to prevent getting blocked. Defaults to ``1` `.
81
81
sort_by (``str``, *optional*):
82
82
In what order to retrive to videos. Pass one of the following values.
83
83
``"relevance"``: Get the new videos in order of relevance.
0 commit comments