JuanBindez/pytubefix

pytubefix.contrib.search.Search Bug

Closed this issue · 6 comments

Describe the bug

import pytubefix
print(pytubefix.contrib.search.Search(“負け犬にアンコールはいらない”).results)

To Reproduce

  1. Do pytubefix.contrib.search.Search()
  2. See error

Expected behavior

WARNING:pytubefix.contrib.search:Unexpected renderer encountered.
WARNING:pytubefix.contrib.search:Renderer name: dict_keys(['reelShelfRenderer'])
WARNING:pytubefix.contrib.search:Search term: 負け犬にアンコールはいらない
WARNING:pytubefix.contrib.search:Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
WARNING:pytubefix.contrib.search:Unexpected renderer encountered.
WARNING:pytubefix.contrib.search:Renderer name: dict_keys(['reelShelfRenderer'])
WARNING:pytubefix.contrib.search:Search term: 負け犬にアンコールはいらない
WARNING:pytubefix.contrib.search:Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.
[<pytubefix.__main__.YouTube object: videoId=gCu7C4aIfmU>, <pytubefix.__main__.YouTube object: videoId=kd_vuUwDh1U>, <pytubefix.__main__.YouTube object: videoId=Ckk9IJwDhNI>, <pytubefix.__main__.YouTube object: videoId=4725X3TpznE>, <pytubefix.__main__.YouTube object: videoId=eHwMcS6CPk0>, <pytubefix.__main__.YouTube object: videoId=NbTjI27ci94>, <pytubefix.__main__.YouTube object: videoId=ALEMhZseyqo>, <pytubefix.__main__.YouTube object: videoId=4IdUBA5mK3g>, <pytubefix.__main__.YouTube object: videoId=9KTFWY5P6Gc>, <pytubefix.__main__.YouTube object: videoId=KXsH2ywyH9Y>, <pytubefix.__main__.YouTube object: videoId=7V1vkqtN7-g>, <pytubefix.__main__.YouTube object: videoId=rd3bmp-3uG0>, <pytubefix.__main__.YouTube object: videoId=2Z3pxUVnyx8>, <pytubefix.__main__.YouTube object: videoId=74QYpYQCW0M>, <pytubefix.__main__.YouTube object: videoId=vdwa6due-CU>, <pytubefix.__main__.YouTube object: videoId=-VKIqrvVOpo>, <pytubefix.__main__.YouTube object: videoId=SIrh-q9u_bE>, <pytubefix.__main__.YouTube object: videoId=AkrP0MSSzUs>]

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS(Colaboratory)
  • Browser None
  • Version Python 3.10.12

Additional context
Add any other context about the problem here.

It seems to be due to an unallowed character

from pytubefix import Search
s = Search('YouTube Rewind')
len(s.results)

Unexpected renderer encountered.
Renderer name: dict_keys(['reelShelfRenderer'])
Search term: YouTube Rewind
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: YouTube Rewind
Please open an issue at https://github.com/pytube/pytube/issues and provide this log output.

An error occurs in the sample

I haven't started testing yet but apparently it seems to be something related to InnerTube

If anyone finds out before help us here

try pytubefix==2.2rc2