title: TypeError: 'NoneType' object is not subscriptable how to use attributes
body: <p>Beginner web-scraping getting error</p>
  <blockquote>
  <p>TypeError: 'NoneType' object is not subscriptable</p>
  </blockquote>
  <pre class="lang-py prettyprint-override"><code>res=requests.get(&quot;https://www.brainyquote.com/quote_of_the_day&quot;)
  soup=BeautifulSoup(res.text,'lxml')
  
  image_quote=soup.find('img', {'class':'p-qotd bqPhotoDefault bqPhotoDefaultFw img-responsive'})
  
  print(image_quote['alt'])
  </code></pre>
  <p>I expected the output as the quote of the day. Instead getting this error.</p>