Riga-Airport Departures (live data from www.riga-airport.com)

--> -->
 
 
<class 'urllib2.HTTPError'>
Python 2.6.6: /usr/bin/python
Sat Apr 4 05:14:18 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/numbers/public_html/cgi1/departures.py in ()
   22 # www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures
   23 
   24 response = urllib2.urlopen('http://www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures')
   25 html = response.read()
   26 start=html.find('<table cellpadding="0" cellspacing="0" width="100%">')
response undefined, urllib2 = <module 'urllib2' from '/usr/lib64/python2.6/urllib2.pyc'>, urllib2.urlopen = <function urlopen>
 /usr/lib64/python2.6/urllib2.py in urlopen(url='http://www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures', data=None, timeout=<object object>)
  124     if _opener is None:
  125         _opener = build_opener()
  126     return _opener.open(url, data, timeout)
  127 
  128 def install_opener(opener):
global _opener = <urllib2.OpenerDirector instance>, _opener.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, url = 'http://www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures', data = None, timeout = <object object>
 /usr/lib64/python2.6/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl='http://www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures', data=None, timeout=<object object>)
  395         for processor in self.process_response.get(protocol, []):
  396             meth = getattr(processor, meth_name)
  397             response = meth(req, response)
  398 
  399         return response
response = <addinfourl at 140616419611856 whose fp = None>, meth = <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance>>, req = <urllib2.Request instance>
 /usr/lib64/python2.6/urllib2.py in http_response(self=<urllib2.HTTPErrorProcessor instance>, request=<urllib2.Request instance>, response=<addinfourl at 140616419611856 whose fp = None>)
  508         if not (200 <= code < 300):
  509             response = self.parent.error(
  510                 'http', request, response, code, msg, hdrs)
  511 
  512         return response
request = <urllib2.Request instance>, response = <addinfourl at 140616419611856 whose fp = None>, code = 301, msg = 'Moved Permanently', hdrs = <httplib.HTTPMessage instance>
 /usr/lib64/python2.6/urllib2.py in error(self=<urllib2.OpenerDirector instance>, proto=301, *args=({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 301, 'http_error_301', <urllib2.Request instance>, <addinfourl at 140616419611856 whose fp = None>, 301, 'Moved Permanently', <httplib.HTTPMessage instance>))
  427             http_err = 0
  428         args = (dict, proto, meth_name) + args
  429         result = self._call_chain(*args)
  430         if result:
  431             return result
result undefined, self = <urllib2.OpenerDirector instance>, self._call_chain = <bound method OpenerDirector._call_chain of <urllib2.OpenerDirector instance>>, args = ({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 301, 'http_error_301', <urllib2.Request instance>, <addinfourl at 140616419611856 whose fp = None>, 301, 'Moved Permanently', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.6/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, kind=301, meth_name='http_error_301', *args=(<urllib2.Request instance>, <addinfourl at 140616419611856 whose fp = None>, 301, 'Moved Permanently', <httplib.HTTPMessage instance>))
  367             func = getattr(handler, meth_name)
  368 
  369             result = func(*args)
  370             if result is not None:
  371                 return result
result undefined, func = <bound method HTTPRedirectHandler.http_error_302 of <urllib2.HTTPRedirectHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 140616419611856 whose fp = None>, 301, 'Moved Permanently', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.6/urllib2.py in http_error_302(self=<urllib2.HTTPRedirectHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 140616419611856 whose fp = None>, code=301, msg='Moved Permanently', headers=<httplib.HTTPMessage instance>)
  614         fp.close()
  615 
  616         return self.parent.open(new, timeout=req.timeout)
  617 
  618     http_error_301 = http_error_303 = http_error_307 = http_error_302
self = <urllib2.HTTPRedirectHandler instance>, self.parent = <urllib2.OpenerDirector instance>, self.parent.open = <bound method OpenerDirector.open of <urllib2.OpenerDirector instance>>, new = <urllib2.Request instance>, timeout undefined, req = <urllib2.Request instance>, req.timeout = <object object>
 /usr/lib64/python2.6/urllib2.py in open(self=<urllib2.OpenerDirector instance>, fullurl=<urllib2.Request instance>, data=None, timeout=<object object>)
  395         for processor in self.process_response.get(protocol, []):
  396             meth = getattr(processor, meth_name)
  397             response = meth(req, response)
  398 
  399         return response
response = <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, meth = <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance>>, req = <urllib2.Request instance>
 /usr/lib64/python2.6/urllib2.py in http_response(self=<urllib2.HTTPErrorProcessor instance>, request=<urllib2.Request instance>, response=<addinfourl at 140616347385800 whose fp = <socket._fileobject object>>)
  508         if not (200 <= code < 300):
  509             response = self.parent.error(
  510                 'http', request, response, code, msg, hdrs)
  511 
  512         return response
request = <urllib2.Request instance>, response = <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance>
 /usr/lib64/python2.6/urllib2.py in error(self=<urllib2.OpenerDirector instance>, proto=404, *args=({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 'default', 'http_error_default', <urllib2.Request instance>, <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
  433         if http_err:
  434             args = (dict, 'default', 'http_error_default') + orig_args
  435             return self._call_chain(*args)
  436 
  437 # XXX probably also want an abstract factory that knows when it makes
self = <urllib2.OpenerDirector instance>, self._call_chain = <bound method OpenerDirector._call_chain of <urllib2.OpenerDirector instance>>, args = ({301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, 'default', 'http_error_default', <urllib2.Request instance>, <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.6/urllib2.py in _call_chain(self=<urllib2.OpenerDirector instance>, chain={301: [<urllib2.HTTPRedirectHandler instance>], 302: [<urllib2.HTTPRedirectHandler instance>], 303: [<urllib2.HTTPRedirectHandler instance>], 307: [<urllib2.HTTPRedirectHandler instance>], 'default': [<urllib2.HTTPDefaultErrorHandler instance>]}, kind='default', meth_name='http_error_default', *args=(<urllib2.Request instance>, <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>))
  367             func = getattr(handler, meth_name)
  368 
  369             result = func(*args)
  370             if result is not None:
  371                 return result
result undefined, func = <bound method HTTPDefaultErrorHandler.http_error...lt of <urllib2.HTTPDefaultErrorHandler instance>>, args = (<urllib2.Request instance>, <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, 404, 'Not Found', <httplib.HTTPMessage instance>)
 /usr/lib64/python2.6/urllib2.py in http_error_default(self=<urllib2.HTTPDefaultErrorHandler instance>, req=<urllib2.Request instance>, fp=<addinfourl at 140616347385800 whose fp = <socket._fileobject object>>, code=404, msg='Not Found', hdrs=<httplib.HTTPMessage instance>)
  516 class HTTPDefaultErrorHandler(BaseHandler):
  517     def http_error_default(self, req, fp, code, msg, hdrs):
  518         raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  519 
  520 class HTTPRedirectHandler(BaseHandler):
global HTTPError = <class 'urllib2.HTTPError'>, req = <urllib2.Request instance>, req.get_full_url = <bound method Request.get_full_url of <urllib2.Request instance>>, code = 404, msg = 'Not Found', hdrs = <httplib.HTTPMessage instance>, fp = <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>

<class 'urllib2.HTTPError'>: HTTP Error 404: Not Found
      args = ()
      close = <bound method HTTPError.close of HTTPError()>
      code = 404
      errno = None
      filename = 'https://www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures'
      fileno = <bound method _fileobject.fileno of <socket._fileobject object>>
      fp = <addinfourl at 140616347385800 whose fp = <socket._fileobject object>>
      getcode = <bound method HTTPError.getcode of HTTPError()>
      geturl = <bound method HTTPError.geturl of HTTPError()>
      hdrs = <httplib.HTTPMessage instance>
      headers = <httplib.HTTPMessage instance>
      info = <bound method HTTPError.info of HTTPError()>
      message = ''
      msg = 'Not Found'
      next = <bound method _fileobject.next of <socket._fileobject object>>
      read = <bound method _fileobject.read of <socket._fileobject object>>
      readline = <bound method _fileobject.readline of <socket._fileobject object>>
      readlines = <bound method _fileobject.readlines of <socket._fileobject object>>
      strerror = None
      url = 'https://www.riga-airport.com/en/main/flights/today-arrives-departs?direction=departures'