예제 #1
0
    def __init__(self, link, posts, handbook):
        self.file = File()
        self.log = Log('sites')

        self.link = link
        self.posts = posts
        self.handbook = handbook
예제 #2
0
파일: scraping.py 프로젝트: Nikkoz/yii2
    def __init__(self):
        self.type = 'sites'

        self.db = Db()
        self.file = File()
        self.log = Log(self.type)

        self.news = []
예제 #3
0
파일: log.py 프로젝트: Nikkoz/yii2
    def __init__(self, filename):
        self.filename = filename

        self.file = File()