We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc530d commit 9517f00Copy full SHA for 9517f00
python-tutorials/project_video.py
@@ -0,0 +1,12 @@
1
+from flask import Flask, request
2
+from microservices import service_flask
3
+
4
+app = Flask(__name__)
5
6
+@app.route("/<path:path>", methods=['GET', 'POST'])
7
8
+def service(path):
9
+ return service(request)
10
11
+if __name__ == "__main__":
12
+ app.run(host="0.0.0.0", debug=True)
python-tutorials/youtube_down.py
@@ -0,0 +1,15 @@
+from pytube import YouTube
+link = "https://www.youtube.com/watch?v=NM3HVHvFWRg"
+try:
+ yt = YouTube(link)
+except:
+ print("Erro de conexao")
+ #fazendo download do video
+ yt.streams.filter(progressive=True, file_extension="mp4").first().download()
13
14
+ print("Erro ao fazer o download")
15
+print("D")
0 commit comments