本文整理汇总了Python中main.Main.parseContent方法的典型用法代码示例。如果您正苦于以下问题:Python Main.parseContent方法的具体用法?Python Main.parseContent怎么用?Python Main.parseContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main.Main
的用法示例。
在下文中一共展示了Main.parseContent方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testTheme
# 需要导入模块: from main import Main [as 别名]
# 或者: from main.Main import parseContent [as 别名]
def testTheme(filename='test/index.html'):
#logging.basicConfig(filename='log.debug',level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)
main=Main()
filefetcher=FileFetcher(filename)
main.parseContent(filefetcher)
print main.themes
if True:
printTree(main.themes)
return
示例2: updateNew
# 需要导入模块: from main import Main [as 别名]
# 或者: from main.Main import parseContent [as 别名]
def updateNew(self):
logging.basicConfig(filename='update.log',level=logging.DEBUG)
#logging.getLogger('core').setLevel(logging.INFO)
main=Main(self.session)
main.parseContent(MainFetcher())
self.session.flush()
# themes, categories and emissions are loaded
# let's update the database with new emissions
# load all new videos XML files from
self.updateEmissions()
self.session.commit()
示例3: showTree
# 需要导入模块: from main import Main [as 别名]
# 或者: from main.Main import parseContent [as 别名]
def showTree():
logging.basicConfig(filename='show.log',level=logging.DEBUG)
main=Main()
main.parseContent()
printTree(main.themes.values())
示例4: resyncAll
# 需要导入模块: from main import Main [as 别名]
# 或者: from main.Main import parseContent [as 别名]
def resyncAll(self):
logging.basicConfig(filename='resync.log',level=logging.DEBUG)
main=Main()
main.parseContent()
# load all new videos XML files from
self.updateVideos(True)