I am attempting to create a python based web scraper to get the price of gold from: https://www.jmbullion.com/charts/gold-price/. However when I run the code it returns the span i'm looking for but its empty.< span id="oz_display">< /span>. I checked the site and it seems to be running some java script that replaces the value " jQuery("#oz_display").html("$ "+gold_oz.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"))" How could I get this data?
import re
from bs4 import BeautifulSoup
from urllib.request import urlopen
my_url = "https://www.jmbullion.com/charts/gold-price/"
gold_url = urlopen(my_url)
page_html = gold_url.read()
gold_url.close()
page_soup = BeautifulSoup(page_html, "html.parser")
containers = page_soup.findAll("td", {"class": "td_2"})
print(containers)
input("end?")```