Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions examples.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from youtube_searcher import search_youtube
from youtube_searcher import YoutubeSearcher
from pprint import pprint

yts = YoutubeSearcher()
query = "Ask a spaceman"
data = search_youtube(query)
data = yts.search_youtube(query)

pprint(data)
"""
Expand Down Expand Up @@ -1183,4 +1185,4 @@
'url': 'https://www.youtube.com/watch?v=1Ea4zENTZlQ',
'videoId': '1Ea4zENTZlQ'}]}

"""
"""
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ pip install youtube_searcher


```python
from youtube_searcher import search_youtube
from youtube_searcher import YoutubeSearcher

yts = YoutubeSearcher()
query = "Rob Zombie"
data = search_youtube(query)
data = yts.search_youtube(query)

"""
{'featured_channel': {'title': 'robzombie',
Expand Down
Loading