title: PyQt5 for web scraping, not working
body: <p><a href="https://i.stack.imgur.com/Fmi5M.png" rel="nofollow noreferrer">This is the screenshot of the error I am getting.</a>Below is my code. I am using PyQt5 with Python 3.5 to scrape a website. Kindly tell me what's wrong with my code:</p>
  
  <pre><code>import sys
  from PyQt5.QtCore import QEventLoop
  from PyQt5.QtWebEngineWidgets import QWebEngineView
  from PyQt5.QtWidgets import QApplication
  import urllib.request
  import bs4 as bs
  
  class Render(QWebEngineView):
  
      def __init__(self, html):
          self.html = None
          self.app = QApplication(sys.argv)
          QWebEngineView.__init__(self)
          self.loadFinished.connect(self._loadFinished)
          self.setHtml(html)
          while self.html is None:
              self.app.processEvents(
                  QEventLoop.ExcludeUserInputEvents |
                  QEventLoop.ExcludeSocketNotifiers |
                  QEventLoop.WaitForMoreEvents)
          self.app.quit()
  
      def _callable(self, data):
          self.html = data
  
      def _loadFinished(self, result):
          self.page().toHtml(self._callable)
  
  
  html = 'http://www.couponraja.com/stores'
  
  render = Render(html)
  source = render.html()
  
  
  soup = bs.BeautifulSoup(source, 'html.parser')
  
  links = soup.select('.list-of-store li a')
  
  for link in links:
      print (link.get('href'))
  </code></pre>
  
  <p>I am trying to access the dynamic <code>script</code> generated html components.</p>