Shorts?
#175
Replies: 3 comments
-
>>> from pytubefix import Search
>>>
>>>
>>> s = Search('python')
>>>
>>> print(s.shorts)
[<pytubefix.__main__.YouTube object: videoId=4nPcTfGYQms>, <pytubefix.__main__.YouTube object: videoId=g9fIWtSexLs>, <pytubefix.__main__.YouTube object: videoId=opRm3x9vHH0>, <pytubefix.__main__.YouTube object: videoId=oV9gZ6VGeB0>, <pytubefix.__main__.YouTube object: videoId=Vrtx9G9lEuM>, <pytubefix.__main__.YouTube object: videoId=tDf1hMT-iRo>, <pytubefix.__main__.YouTube object: videoId=r5OfsZClASI>, <pytubefix.__main__.YouTube object: videoId=xnFGXXYhW_I>, <pytubefix.__main__.YouTube object: videoId=AaWaE2CEUF0>, <pytubefix.__main__.YouTube object: videoId=T2mLTK4CyfQ>, <pytubefix.__main__.YouTube object: videoId=P5An-rTtM_k>, <pytubefix.__main__.YouTube object: videoId=gckyFjucFdo>, <pytubefix.__main__.YouTube object: videoId=Zn2lt9ZSeTw>, <pytubefix.__main__.YouTube object: videoId=otJLgUL0STI>, <pytubefix.__main__.YouTube object: videoId=S0EGmrNEzgA>, <pytubefix.__main__.YouTube object: videoId=a6nNozpYqBc>, <pytubefix.__main__.YouTube object: videoId=X8KL7iAk-7k>, <pytubefix.__main__.YouTube object: videoId=mLnXcYRcbBU>, <pytubefix.__main__.YouTube object: videoId=gG-i_OFcAXs>, <pytubefix.__main__.YouTube object: videoId=E4irfufjJOo>, <pytubefix.__main__.YouTube object: videoId=BP7Qv997g18>, <pytubefix.__main__.YouTube object: videoId=WTLv-Lh1JFs>, <pytubefix.__main__.YouTube object: videoId=q8Mb2TRj_-M>, <pytubefix.__main__.YouTube object: videoId=aIUqbB7R1v0>, <pytubefix.__main__.YouTube object: videoId=AnDlTS4Cj6U>, <pytubefix.__main__.YouTube object: videoId=qYDoRd7sCJg>, <pytubefix.__main__.YouTube object: videoId=nvsUygpBSR8>, <pytubefix.__main__.YouTube object: videoId=AHjo2QafpDA>, <pytubefix.__main__.YouTube object: videoId=86PNRZlNjyw>, <pytubefix.__main__.YouTube object: videoId=iwqc9KL6zvk>, <pytubefix.__main__.YouTube object: videoId=R6I4NHmdlkA>, <pytubefix.__main__.YouTube object: videoId=NjzI_4jZX4k>, <pytubefix.__main__.YouTube object: videoId=ZqS_lnqSgeY>, <pytubefix.__main__.YouTube object: videoId=J8CwlpEwHoA>, <pytubefix.__main__.YouTube object: videoId=JvMh6yshgFo>, <pytubefix.__main__.YouTube object: videoId=gMfJM06Cf3A>, <pytubefix.__main__.YouTube object: videoId=M6rvm25Ojjw>, <pytubefix.__main__.YouTube object: videoId=apoWKUpNvas>, <pytubefix.__main__.YouTube object: videoId=Kh5jZMM8h7Y>, <pytubefix.__main__.YouTube object: videoId=i_wCcxCEmj8>, <pytubefix.__main__.YouTube object: videoId=tDf1hMT-iRo>, <pytubefix.__main__.YouTube object: videoId=r5OfsZClASI>, <pytubefix.__main__.YouTube object: videoId=xnFGXXYhW_I>, <pytubefix.__main__.YouTube object: videoId=AaWaE2CEUF0>, <pytubefix.__main__.YouTube object: videoId=T2mLTK4CyfQ>, <pytubefix.__main__.YouTube object: videoId=P5An-rTtM_k>, <pytubefix.__main__.YouTube object: videoId=gckyFjucFdo>, <pytubefix.__main__.YouTube object: videoId=Zn2lt9ZSeTw>, <pytubefix.__main__.YouTube object: videoId=otJLgUL0STI>, <pytubefix.__main__.YouTube object: videoId=S0EGmrNEzgA>]
>>>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
>>> from pytubefix import Search
>>>
>>> s = Search('python')
>>>
>>> for short in s.shorts:
... ID = short.video_id
... print(f"https://www.youtube.com/shorts/{ID}")
...
https://www.youtube.com/shorts/4nPcTfGYQms
https://www.youtube.com/shorts/g9fIWtSexLs
https://www.youtube.com/shorts/opRm3x9vHH0
https://www.youtube.com/shorts/Vrtx9G9lEuM
https://www.youtube.com/shorts/oV9gZ6VGeB0
https://www.youtube.com/shorts/tDf1hMT-iRo
https://www.youtube.com/shorts/QnTklwGfx2U
https://www.youtube.com/shorts/r5OfsZClASI
https://www.youtube.com/shorts/xnFGXXYhW_I
https://www.youtube.com/shorts/AaWaE2CEUF0
https://www.youtube.com/shorts/T2mLTK4CyfQ
https://www.youtube.com/shorts/P5An-rTtM_k
https://www.youtube.com/shorts/QOXFKi9ss8o
https://www.youtube.com/shorts/WO7wT-FX2mA
https://www.youtube.com/shorts/Zn2lt9ZSeTw
https://www.youtube.com/shorts/S0EGmrNEzgA
https://www.youtube.com/shorts/a6nNozpYqBc
https://www.youtube.com/shorts/mLnXcYRcbBU
https://www.youtube.com/shorts/X8KL7iAk-7k
https://www.youtube.com/shorts/C4btqWgYCx4
https://www.youtube.com/shorts/gG-i_OFcAXs
https://www.youtube.com/shorts/E4irfufjJOo
https://www.youtube.com/shorts/BP7Qv997g18
https://www.youtube.com/shorts/WTLv-Lh1JFs
https://www.youtube.com/shorts/q8Mb2TRj_-M
https://www.youtube.com/shorts/nvsUygpBSR8
https://www.youtube.com/shorts/AnDlTS4Cj6U
https://www.youtube.com/shorts/DCdXP3cywjU
https://www.youtube.com/shorts/qYDoRd7sCJg
https://www.youtube.com/shorts/AHjo2QafpDA
https://www.youtube.com/shorts/aIUqbB7R1v0
https://www.youtube.com/shorts/iwqc9KL6zvk
https://www.youtube.com/shorts/86PNRZlNjyw
https://www.youtube.com/shorts/Y7uQ3dS2uss
https://www.youtube.com/shorts/M6rvm25Ojjw
https://www.youtube.com/shorts/J8CwlpEwHoA
https://www.youtube.com/shorts/ZqS_lnqSgeY
https://www.youtube.com/shorts/R6I4NHmdlkA
https://www.youtube.com/shorts/JvMh6yshgFo
https://www.youtube.com/shorts/NjzI_4jZX4k
https://www.youtube.com/shorts/tDf1hMT-iRo
https://www.youtube.com/shorts/QnTklwGfx2U
https://www.youtube.com/shorts/r5OfsZClASI
https://www.youtube.com/shorts/xnFGXXYhW_I
https://www.youtube.com/shorts/AaWaE2CEUF0
https://www.youtube.com/shorts/T2mLTK4CyfQ
https://www.youtube.com/shorts/P5An-rTtM_k
https://www.youtube.com/shorts/QOXFKi9ss8o
https://www.youtube.com/shorts/WO7wT-FX2mA
https://www.youtube.com/shorts/Zn2lt9ZSeTw
>>> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ability to search for shorts?
Beta Was this translation helpful? Give feedback.
All reactions