title: Extracting custom "data" tags using BeautifulSoup (python)
body: <p>Scraping HTML that looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="resultRow" data-unix="1528542937" id="resultRow1"&gt;
  &lt;div class="resultRow" data-unix="1528542937" id="resultRow2"&gt;
  &lt;div class="resultRow" data-unix="1528542937" id="resultRow1"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do I extract the value of the data-unix field?</p>
  
  <p>Do I have to use REGEXP for this or is there a better method?</p>
  
  <pre><code>for tmp in soup.findAll('div', {'class':'resultRow'}):
        x = tmp.find(re.compile('/data-unix="(.*)"/'))
  </code></pre>
  
  <p>Thank you in advance.</p>