예제 #1
0
def testVideoParser(filename=None):
  logging.basicConfig(level=logging.DEBUG)
  f=file('test/guignols.html')
  emission=Emission(pid=1784,text='LES GUIGNOLS')
  root=lxml.html.parse(f)
  videoParser=VideoParser(emission)
  videos=[videoParser.parse(element) for element in root.xpath(videoParser.xPath)]
  print videos