I've been transitioning my flask app to pythonanwyhere and am on the final stretch. My only problem right now is dealing with yfinance. Although I'm on the free plan, according to do allowed Internet list, yahoo should be fine. I isolated the problem with this:
try:
url = "https://query1.finance.yahoo.com/v7/finance/quote?symbols=F"
response = requests.get(url)
return jsonify({"status": response.status_code, "text": response.text[:200]})
except Exception as e:
return jsonify({"error": str(e)})
which results with
{"status":429,"text":"Edge: Too Many Requests"}
The same issue happens with yfinance. Is there something I can do to fix this? Thank you in advance.