title: In Python/Selenium, How to crawl whole youtube comment?
body: <p>I want to analyze correlation with YouTube comment and Country by using 
  Python/selenium</p>
  
  <p>If YouTube's movie contain too many comments, We scroll chrome to search next comment. Therefore I stop 3 seconds until loading comments. </p>
  
  <pre><code>last_page_height = driver.execute_script("return document.documentElement.scrollHeight")
  
  while True:
      driver.execute_script("window.scrollTo(0, document.documentElement.scrollHeight);")
      time.sleep(3.0)
      new_page_height = driver.execute_script("return document.documentElement.scrollHeight")
      if new_page_height == last_page_height:
          break
      last_page_height = new_page_height
  
  html_source = driver.page_source
  driver.close()
  soup = BeautifulSoup(html_source, 'lxml')
  </code></pre>
  
  <p>but this code doesn't crawl whole comments, just about 1500 comments.</p>