title: How to get img alt text and data-src using Beautifulsoup?
body: <p>HTML snippet :</p>
  
  <pre><code>&lt;span class="photo_tooltip" id="__w2_YFXobXt_link"&gt;
  &lt;a href="/profile/Smit-Soni-2" id="__w2_GDetCwt_link"&gt;
  &lt;img class="profile_photo_img" src="https://assets.ec.quoracdn.net/-images.placeholder_img.png96cbdb37c749e493.png" height="50" width="50" data-src="https://assets.ec.quoracdn.net/main-thumb-18048885-50-ujrumofdevpkaarfisuvjdtbihztxnta.jpeg" alt="Smit Soni" /&gt;
  &lt;/a&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I want to extract all the <code>alt</code> text and <code>data-src</code> from the <code>img class="profile_photo_img</code>. My code:</p>
  
  <pre><code>ele = soup.find_all('img', class_='profile_photo_img')
      for i in ele:
          print i["data-src"]
          print i["alt"]
  </code></pre>
  
  <p>But it is printing nothing. How can I get the desired result?</p>