Пример #1
0
    def _download(self, *args, **kwargs):
        shuoshuo_media_downloader = ShuoShuoMediaDownloader(self._directory)
        shuoshuo_media_downloader.download()
        photo_downloader = PhotoDownloader(self._directory)
        photo_downloader.download()

        photo_dir = os.path.join(self._directory, QzonePath.PHOTO)
        if not os.path.exists(photo_dir):
            return
        files = os.listdir(photo_dir)
        for album_dir in files:
            if not os.path.isdir(album_dir):
                continue
            comment_downloader = PhotoCommentDownloader(album_dir)
            comment_downloader.download()
Пример #2
0
 def _download(self, *args, **kwargs):
     shuoshuo_media_downloader = ShuoShuoMediaDownloader(self._directory)
     shuoshuo_media_downloader.download()
     photo_downloader = PhotoDownloader(self._directory)
     photo_downloader.download()