title: How to parse an attribute?
body: <p>How could I parse a value from data-value? </p>
  
  <pre><code>&lt;a href="example.com" data-ref="TopRates" data-type="price" data-value="1212749" data-changescale="1" data-market-id="curr_one" data-symbol="curr_one"&gt;curr_one&lt;/a&gt;
  </code></pre>
  
  <p>Here I have an example of script, it is searching for the first span which has bullish-color class and show on the screen what was there in that span. How should I parse a value from data-value and show it on the screen from the example above?</p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  
  Options = webdriver.ChromeOptions()
  Options.add_argument('--headless')
  Options.add_argument('--disable-gpu')
  Options.add_argument('--no-sandbox')
  
  url = "http://example.com"
  browser = webdriver.Chrome(chrome_options = Options, executable_path="/usr/local/bin/chromedriver")
  browser.get(url)
  
  soup = BeautifulSoup(browser.page_source, features="html.parser")
  a = soup.find("span", {"class": "bullish-color"})
  print(a.text)
  </code></pre>