Пример #1
0
    def crawlArtist(self, uid):
        path = self.base_path + str(uid) + '/'
        artist = Artist(self.P, uid)
        content = artist.crawl()
        if not os.path.exists(path):
            os.mkdir(path)
        ctype = ('illust', 'manga', 'ugoira')
        for _type in ctype:
            wpath = path + _type + '/'
            if not os.path.exists(wpath):
                os.mkdir(wpath)

            for wid in content[_type]:
                self.R.send((wid,wpath))