--> -->
 
 
<type 'exceptions.AttributeError'>
Python 2.7.13: /usr/bin/python
Thu May 2 16:14:12 2024

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

 /var/www/inamidst.com/stuff/info/youtube.cgi in ()
    101    text(arg.split('=').pop())
    102 elif arg: 
=>  103    html(arg)
    104 else: print 'A YouTube Video ID is required.'
    105 
html = <function html>, arg = '4pXfHLUlZf4'
 /var/www/inamidst.com/stuff/info/youtube.cgi in html(vid='4pXfHLUlZf4')
     64    print '<!DOCTYPE html> <!-- Try using the full URI as an arg -->'
     65 
=>   66    title, views, average, raters, duration = data(vid)
     67 
     68    print '<title>' + title + '</title>'
title undefined, views undefined, average undefined, raters undefined, duration undefined, global data = <function data>, vid = '4pXfHLUlZf4'
 /var/www/inamidst.com/stuff/info/youtube.cgi in data(vid='4pXfHLUlZf4')
     37    u.close()
     38 
=>   39    title = r_title.search(bytes).group(1)
     40    views = int(r_viewCount.search(bytes).group(1))
     41    views = formatnumber(views)
title undefined, global r_title = <_sre.SRE_Pattern object>, r_title.search = <built-in method search of _sre.SRE_Pattern object>, bytes = '<!DOCTYPE html>\n<html lang=en>\n <meta charset=u...n this server. <ins>That\xe2\x80\x99s all we know.</ins>\n', ).group undefined

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'group'
      args = ("'NoneType' object has no attribute 'group'",)
      message = "'NoneType' object has no attribute 'group'"