You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@app.route('/name/string:song_name')
def search(song_name):
videoid = scrapetube.get_search(song_name , limit=1 , sleep=1)
for video in videoid:
return video["videoid"]
if name == "main":
app.run(debug=True)
The text was updated successfully, but these errors were encountered:
adarshchri
changed the title
In flask scrapetube is getting error please help :)
In flask scrapetube is getting error please help :) @dermasmid
Jan 5, 2023
adarshchri
changed the title
In flask scrapetube is getting error please help :) @dermasmid
In flask scrapetube is getting error please help
Jan 5, 2023
from flask import Flask, jsonify
from flask_cors import CORS
import scrapetube
app = Flask(name)
CORS(app)
@app.route("/")
def hello_world():
return "Hello world"
@app.route('/name/string:song_name')
def search(song_name):
videoid = scrapetube.get_search(song_name , limit=1 , sleep=1)
for video in videoid:
return video["videoid"]
if name == "main":
app.run(debug=True)
The text was updated successfully, but these errors were encountered: