Building a Basic Web Application with Flask and Yfinance to Showcase Stock Prices.

Posted by

Stock Price Tracker

Stock Price Tracker

Stock Price:

document.querySelector(‘form’).addEventListener(‘submit’, async (e) => {
e.preventDefault();

const symbol = document.getElementById(‘stock_symbol’).value;

const response = await fetch(‘/stock_price’, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json’,
},
body: JSON.stringify({symbol}),
});

const data = await response.json();

document.getElementById(‘stock_price’).innerText = data.price;
});

0 0 votes
Article Rating
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@catafest
2 months ago

how about Instagram web parsing features? I don't find a python package, any idea?