Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
🔧 Updated usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind committed Nov 21, 2020
1 parent 041e48b commit cc7b991
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Usage Example.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
from youtubesearchpython import SearchVideos, SearchPlaylists

videos = SearchVideos("NoCopyrightSounds", offset = 1, mode = "json", max_results = 20)
videos = SearchVideos(
"NoCopyrightSounds",
offset = 1,
mode = "json",
max_results = 20,
language = "en-US",
region="US"
)
videosResult = videos.result()
print(videosResult)

playlists = SearchPlaylists("NoCopyrightSounds", offset = 1, mode = "json", max_results = 20)
playlists = SearchPlaylists(
"NoCopyrightSounds",
offset = 1,
mode = "json",
max_results = 20,
language = "ru-RU",
region="US"
)
playlistsResult = playlists.result()
print(playlistsResult)

0 comments on commit cc7b991

Please sign in to comment.