title: How to retrieve the values of dynamic html content using Python
body: <p>I'm using Python 3 and I'm trying to retrieve data from a website. However, this data is dynamically loaded and the code I have right now doesn't work:</p>
  
  <pre><code>url = eveCentralBaseURL + str(mineral)
  print("URL : %s" % url);
  
  response = request.urlopen(url)
  data = str(response.read(10000))
  
  data = data.replace("\\n", "\n")
  print(data)
  </code></pre>
  
  <p>Where I'm trying to find a particular value, I'm finding a template instead e.g."{{formatPrice median}}" instead of "4.48".</p>
  
  <p>How can I make it so that I can retrieve the value instead of the placeholder text? </p>
  
  <p>Edit: <a href="http://eve-central.com/home/quicklook.html?typeid=34" rel="noreferrer">This</a> is the specific page I'm trying to extract information from. I'm trying to get the "median" value, which uses the template {{formatPrice median}}</p>
  
  <p>Edit 2: I've installed and set up my program to use Selenium and BeautifulSoup.</p>
  
  <p>The code I have now is:</p>
  
  <pre><code>from bs4 import BeautifulSoup
  from selenium import webdriver
  
  #...
  
  driver = webdriver.Firefox()
  driver.get(url)
  
  html = driver.page_source
  soup = BeautifulSoup(html)
  
  print "Finding..."
  
  for tag in soup.find_all('formatPrice median'):
      print tag.text
  </code></pre>
  
  <p><a href="http://puu.sh/3AB98.png" rel="noreferrer">Here</a> is a screenshot of the program as it's executing. Unfortunately, it doesn't seem to be finding anything with "formatPrice median" specified.</p>