Skip to content

Instantly share code, notes, and snippets.

@JosiasAurel
Created March 15, 2020 12:26
Show Gist options
  • Save JosiasAurel/a756ec352659bdad8b87b917dc0ba582 to your computer and use it in GitHub Desktop.
Save JosiasAurel/a756ec352659bdad8b87b917dc0ba582 to your computer and use it in GitHub Desktop.
from flask import Flask, render_template
from pytube import YouTube
app = Flask(__name__)
link = str(input('Enter the link of the video : '))
yt = YouTube(link)
title = yt.title
thumbnail = yt.thumbnail_url
@app.route('/')
def hello():
return render_template('index.html', title=title, thumbnail=thumbnail, link=link )
if __name__ == '__main__':
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment