#!/usr/bin/python # -*- coding: utf-8 -*- from crawler import LectureCrawler import os import codecs BATTO_FILE_PREFIX = 'db' BATTO_FILE_EXTENSION = 'tdb' BATTO_FILE_EXTENSION_2 = 'info' BATTO_DIR = './tdb/' DEBUG = False crawler = LectureCrawler() crawler.crawl() colleges = { u'H3IA': u'정책과학대학', u'H3HX': u'융합전공', u'H3HW': u'경제금융대학', u'H3': u'서울 대학', u'H3HU': u'국제학부', u'H3HT': u'생활과학대학', u'H3HR': u'경영대학', u'H3HP': u'법학과', u'H3HN': u'자연과학대학', u'H3HM': u'사회과학대학', u'H3HL': u'인문과학대학', u'H3IB': u'예술·체육대학', u'H3HH': u'음악대학', u'H3HG': u'사범대학',
#!/usr/bin/python # -*- coding: utf-8 -*- from crawler import LectureCrawler crawler = LectureCrawler() crawler.crawl() for major_lecture_group in crawler.iter_major_lecture_groups(): print major_lecture_group.name for cultural_lecture_group in crawler.iter_cultural_lecture_groups(): print cultural_lecture_group.name