Skip to content

Latest commit

 

History

History
 
 

Day-30

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

30DaysOfStreamlit | Day-30

The Art of Creating Streamlit Apps

Thumbnail images from YouTube videos

Challenge Link

# Display YouTube thumbnail image
if yt_url != '':
  ytid = get_ytid(yt_url) # yt or yt_url

  yt_img = f'http://img.youtube.com/vi/{ytid}/{img_quality}.jpg'
  st.image(yt_img)
  st.write('YouTube video thumbnail image URL: ', yt_img)
else:
  st.write('☝️ Enter URL to continue ...')

References

Result

day30