![]() Notice the value in "tickers" and the "columns" Soup = BeautifulSoup(response.text, 'html.parser')ĭata = soup.find_all('div', attrs= Developed & tested in Python 3.9.5 (So didn’t test others) Make sure the main thread keeps running If required just do while True: pass. Makes a websocket connection to the Tradeview website and receives price & volume updates realtime. #print("Company name available in Database") Reverse engineered connection to the TradingView ticker in Python. While sh.cell(row=s_row, column= s_col).value != None:Ĭ_name = sh.cell(row=s_row, column=s_col).value Can someone please help me in this? The html tag highlighted containing the price of stock import openpyxl Then call the function pythonversion() that returns a string with the version number running in your Jupyter notebook such as '3.7.11'. After running this code I am getting the output in a array(data) but that does not contain any stock price, which i could later retrieve and update in my list. To check the Python version in your Jupyter notebook, first import the pythonversion function with from platform import pythonversion. I am trying to read stock name from a excel file and update their latest price in my excel sheet using this code.
0 Comments
Leave a Reply. |