When trying to use Search.results in any context, the following error is thrown:
Unexpected renderer encountered.
Renderer name: dict_keys(['adSlotRenderer'])
Search term: random video
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: random video
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: random video
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
[<pytube.__main__.YouTube object: videoId=BHNY4PqqLg8>, <pytube.__main__.YouTube object: videoId=0NcPkQsKZSQ>, <pytube.__main__.YouTube object: videoId=SlT4Qt7FLvQ>, <pytube.__main__.YouTube object: videoId=Qw2LUsS-Ujo>, <pytube.__main__.YouTube object: videoId=M0dwYm_BQ5c>, <pytube.__main__.YouTube object: videoId=lghlkDA1gVY>, <pytube.__main__.YouTube object: videoId=xGmyTaCsv0c>, <pytube.__main__.YouTube object: videoId=c1WaoB5IIvA>, <pytube.__main__.YouTube object: videoId=GsFcOU2xGW0>, <pytube.__main__.YouTube object: videoId=irpBtTdJVps>, <pytube.__main__.YouTube object: videoId=J6MoxGiH5QM>, <pytube.__main__.YouTube object: videoId=LksylzJ6mqw>, <pytube.__main__.YouTube object: videoId=MTTLuuX3BqE>, <pytube.__main__.YouTube object: videoId=WkwnqHNY0mw>, <pytube.__main__.YouTube object: videoId=O9mhFD4Ai-g>, <pytube.__main__.YouTube object: videoId=vC09eyvhx_k>, <pytube.__main__.YouTube object: videoId=EiaC2IJmfFo>, <pytube.__main__.YouTube object: videoId=rQQKXuwACAI>, <pytube.__main__.YouTube object: videoId=-Rn-Zs3X9oQ>]
The very simple code is used:
import pytube
from pytube import YouTube
from pytube import Search
s = Search('random video')
print(s.results)
Just trying to search for videos using the Search feature.
Python version: 3.10.11
Pytube version: 15.0.0
Command used to install pytube: python -m pip install git+https://github.com/pytube/pytube
When trying to use Search.results in any context, the following error is thrown:
The very simple code is used:
Just trying to search for videos using the Search feature.
python -m pip install git+https://github.com/pytube/pytube