title: How to create URL for webhook receiver within the script?
body: <p>I need to connect to a webhook to retrieve data every-time a survey is taken. The tool I am using requires me too pass in a call back url. </p>
  
  <p>Is there anyway I can generate a static URL within my script that can act as my call back url? </p>
  
  <p>I found this receiver script online but this only listens to port 8080:</p>
  
  <pre><code>import web
  
  urls = ('/.*', 'hooks')
  
  app = web.application(urls, globals())
  
  class hooks:
      def POST(self):
          data = web.data()
          print
          print 'DATA RECEIVED:'
          print data
          print
          return 'OK'
  
  if __name__ == '__main__':
      app.run()
  </code></pre>