title: BeautifulSoup "AttributeError: 'NoneType' object has no attribute 'text'"
body: <p>I was web-scraping <a href="https://www.google.com/search?hl=en&amp;ei=coGHXPWEIouUr7wPo9ixoAg&amp;q=%EC%9D%BC%EB%B3%B8%20%E6%A1%9C%E5%B7%9D%E5%B8%82%E7%9C%9F%E5%A3%81%E7%94%BA%E5%8F%A4%E5%9F%8E%20%EB%82%B4%EC%9D%BC%20%EB%82%A0%EC%94%A8&amp;oq=%EC%9D%BC%EB%B3%B8%20%E6%A1%9C%E5%B7%9D%E5%B8%82%E7%9C%9F%E5%A3%81%E7%94%BA%E5%8F%A4%E5%9F%8E%20%EB%82%B4%EC%9D%BC%20%EB%82%A0%EC%94%A8&amp;gs_l=psy-ab.3...232674.234409..234575...0.0..0.251.929.0j6j1......0....1..gws-wiz.......35i39.yu0YE6lnCms" rel="nofollow noreferrer">weather-searched Google</a> with bs4, and Python can't find a <code>&lt;span&gt;</code> tag when there is one. How can I solve this problem?</p>
  
  <p>I tried to find this <code>&lt;span&gt;</code> with the <code>class</code> <strong>and</strong> the <code>id</code>, but both failed. </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="wob_dcp"&gt;
      &lt;span class="vk_gy vk_sh" id="wob_dc"&gt;Clear with periodic clouds&lt;/span&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p>Above is the HTML code I was trying to scrape in the <a href="https://drive.google.com/file/d/1PDzaQ3MCPCnRxHLcEsdEI9tUhDOQauN9/view?usp=sharing" rel="nofollow noreferrer">page</a>:</p>
  
  <pre class="lang-py prettyprint-override"><code>response = requests.get('https://www.google.com/search?hl=ja&amp;ei=coGHXPWEIouUr7wPo9ixoAg&amp;q=%EC%9D%BC%EB%B3%B8+%E6%A1%9C%E5%B7%9D%E5%B8%82%E7%9C%9F%E5%A3%81%E7%94%BA%E5%8F%A4%E5%9F%8E+%EB%82%B4%EC%9D%BC+%EB%82%A0%EC%94%A8&amp;oq=%EC%9D%BC%EB%B3%B8+%E6%A1%9C%E5%B7%9D%E5%B8%82%E7%9C%9F%E5%A3%81%E7%94%BA%E5%8F%A4%E5%9F%8E+%EB%82%B4%EC%9D%BC+%EB%82%A0%EC%94%A8&amp;gs_l=psy-ab.3...232674.234409..234575...0.0..0.251.929.0j6j1......0....1..gws-wiz.......35i39.yu0YE6lnCms')
  soup = BeautifulSoup(response.content, 'html.parser')
  
  tomorrow_weather = soup.find('span', {'id': 'wob_dc'}).text
  </code></pre>
  
  <p>But failed with this code, the error is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\sungn_000\Desktop\weather.py", line 23, in &lt;module&gt;
      tomorrow_weather = soup.find('span', {'id': 'wob_dc'}).text
  AttributeError: 'NoneType' object has no attribute 'text'
  </code></pre>
  
  <p>Please solve this error.</p>