await out side function
Closed this issue · 1 comments
M-fazin commented
from youtubesearchpython.future import VideosSearch
videosSearch = VideosSearch('NoCopyrightSounds', limit = 2)
videosResult = await videosSearch.next()
print(videosResult)
alexmercerind commented
Please refer to the asyncExample.py
file on the repository.
youtube-search-python/asyncExample.py
Lines 199 to 200 in 901be01
Learn more about async Python, otherwise the non __future__
package also works fine I believe.