title: How can I *webscrape* if the source HTML doesn't contain the actual number?
body: <p>Hi I'm totally newbie to the computer progamming world. So I might ask stupid questions.
  I'm trying to build a web scraping tool using python to <em>scrape</em> some statistics from Korean Statistical Office(KOSIS). So this is How I did and it keeps return error saying &quot;'NoneType' object has no attribute 'find'&quot;</p>
  <pre><code>
  import csv
  import requests
  from bs4 import BeautifulSoup
  
  url = &quot;https://kosis.kr/statHtml/statHtml.do?orgId=101&amp;tblId=DT_1K31002&amp;conn_path=I2&quot;
  
  res = requests.get(url)
  res.raise_for_status()
  soup = BeautifulSoup(res.text, &quot;lxml&quot;)
  
  data_rows = soup.find(&quot;table&quot;, attrs = {&quot;id&quot; : &quot;mainTable&quot;}).find(&quot;tbody&quot;).find_all(&quot;tr&quot;)
  
  print(data_rows.get_text())
  
  </code></pre>
  <p>I googled my problem and found out that the DOM in browser is different from the actual HTML source. So I went into view-source page(view-source:<a href="https://kosis.kr/statHtml/statHtml.do?orgId=101&amp;tblId=DT_1K31002&amp;conn_path=I2" rel="nofollow noreferrer">https://kosis.kr/statHtml/statHtml.do?orgId=101&amp;tblId=DT_1K31002&amp;conn_path=I2</a>) and since I don't know anything about HTML, I ran it in codebeautify and found out that source code doesn't contain any of the number that I'm seeing? huh. Is there anyone who can teach me what's happening. Thanks!</p>