+ # upload date
+ upload_date = u'NA'
+ mobj = re.search(r'id="eow-date".*?>(.*?)</span>', video_webpage, re.DOTALL)
+ if mobj is not None:
+ try:
+ if ',' in mobj.group(1):
+ # Month Day, Year
+ m, d, y = mobj.group(1).replace(',', '').split()
+ else:
+ # Day Month Year, we'll suppose
+ d, m, y = mobj.group(1).split()
+ m = month_name_to_number[m]
+ d = '%02d' % (long(d))
+ upload_date = '%s%s%s' % (y, m, d)
+ except:
+ upload_date = u'NA'
+