I'm learning how to iterate scraping values from a webpage, I've used bs4 before but I can't figure out why, even if this is a simple example, I'm getting an empty list (or element).
The test I would like to print/save is:
<div data-v-1931433b="" class="mar-m c-r"> 9.1516 </div>
The code I've used is:
1 import json
2 import requests
3 from bs4 import BeautifulSoup
4
5
6 url = 'https://goldencoreex.com/trade/index.html?spAsseType=0#/index'
7
8 html_page = BeautifulSoup(requests.get(url).content, 'html.parser')
9 elements = html_page.find_all("div", class_="mar-m c-r")
10
11 print(elements)
Only guess I have for this issue is that I may have messed-up with the url.
I would be also really much appreciate some hints on how to make the code run continuously, so to capture data whenever the element is updated.