Created
March 15, 2020 12:26
-
-
Save JosiasAurel/a756ec352659bdad8b87b917dc0ba582 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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