This repository was archived by the owner on Apr 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11# pylint: disable=useless-import-alias
22
3+ from .monsnode_parser import MonsnodeParser as MonsnodeParser
4+ from .platform_video_downloader import \
5+ PlatformVideoDownloader as PlatformVideoDownloader
36from .twitter_crawler import TwitterCrawler as TwitterCrawler
47from .video_downloader import VideoDownloader as VideoDownloader
Original file line number Diff line number Diff line change 11from typing import Optional
22
33from playwright .sync_api import sync_playwright
4- from youtube_dl .utils import YoutubeDLError
4+ from youtube_dl .utils import DownloadError , YoutubeDLError
55
66from .monsnode_parser import MonsnodeParser
77from .twitter_crawler import TwitterCrawler
@@ -31,8 +31,6 @@ def download_twitter_video(
3131 youtube_dl_option = self ._make_youtube_dl_option ()
3232 youtube_dl_wrapper .download ([link ], youtube_dl_option )
3333 except YoutubeDLError as exception :
34- if 'not authorized' not in str (exception ):
35- raise exception
3634 if not username or not password :
3735 raise Exception ('Username and password are required to download private Twitter video' ) from exception
3836
You can’t perform that action at this time.
0 commit comments