title: Looking to scrape a website daily and set up alerts
body: <p>I need to run a script that scrapes the following site daily (when the script is run it scrapes the calendar for that day) (the equivalent of clicking on the "daily" button)</p>
  
  <p><a href="http://www.fxempire.com/economic-calendar/" rel="nofollow">http://www.fxempire.com/economic-calendar/</a></p>
  
  <p>I want to extract all the days data/events for that particular day, and filter for the relevant currencies (if appropriate) and to then create some kind of alert or pop up 10 mins before each of those events are to take place.</p>
  
  <p>I am using the below code so far to scrape the webpage, and then view/print the variable "html" but cannot find the calendar information that I require.</p>
  
  <pre><code>import sys  
  from PyQt4.QtGui import *  
  from PyQt4.QtCore import *  
  from PyQt4.QtWebKit import *  
  
  
  
  class Render(QWebPage):  
    def __init__(self, url):  
      self.app = QApplication(sys.argv)  
      QWebPage.__init__(self)  
      self.loadFinished.connect(self._loadFinished)  
      self.mainFrame().load(QUrl(url))  
      self.app.exec_()  
  
    def _loadFinished(self, result):  
      self.frame = self.mainFrame()  
      self.app.quit()  
  
  url = 'http://www.fxempire.com/economic-calendar/'  
  r = Render(url)  
  html = r.frame.toHtml()  
  </code></pre>