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 1
1
# pylint: disable=useless-import-alias
2
2
3
+ from .monsnode_parser import MonsnodeParser as MonsnodeParser
4
+ from .platform_video_downloader import \
5
+ PlatformVideoDownloader as PlatformVideoDownloader
3
6
from .twitter_crawler import TwitterCrawler as TwitterCrawler
4
7
from .video_downloader import VideoDownloader as VideoDownloader
Original file line number Diff line number Diff line change 1
1
from typing import Optional
2
2
3
3
from playwright .sync_api import sync_playwright
4
- from youtube_dl .utils import YoutubeDLError
4
+ from youtube_dl .utils import DownloadError , YoutubeDLError
5
5
6
6
from .monsnode_parser import MonsnodeParser
7
7
from .twitter_crawler import TwitterCrawler
@@ -31,8 +31,6 @@ def download_twitter_video(
31
31
youtube_dl_option = self ._make_youtube_dl_option ()
32
32
youtube_dl_wrapper .download ([link ], youtube_dl_option )
33
33
except YoutubeDLError as exception :
34
- if 'not authorized' not in str (exception ):
35
- raise exception
36
34
if not username or not password :
37
35
raise Exception ('Username and password are required to download private Twitter video' ) from exception
38
36
You can’t perform that action at this time.
0 commit comments