From 00f6c01e1863168fa007d7698ff61d7c99552072 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 22 May 2024 01:15:49 +0200 Subject: [PATCH] [vine] remove support (discontinued) --- README.md | 1 - src/you_get/common.py | 1 - src/you_get/extractors/__init__.py | 1 - src/you_get/extractors/tumblr.py | 4 ---- src/you_get/extractors/twitter.py | 1 - src/you_get/extractors/vine.py | 36 ------------------------------ 6 files changed, 44 deletions(-) delete mode 100644 src/you_get/extractors/vine.py diff --git a/README.md b/README.md index 5748775e..0db87791 100644 --- a/README.md +++ b/README.md @@ -373,7 +373,6 @@ Use `--url`/`-u` to get a list of downloadable resource URLs extracted from the | **YouTube** | |✓| | | | **X (Twitter)** | |✓|✓| | | VK | |✓|✓| | -| Vine | |✓| | | | Vimeo | |✓| | | | Veoh | |✓| | | | **Tumblr** | |✓|✓|✓| diff --git a/src/you_get/common.py b/src/you_get/common.py index d14eb980..752c63f2 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -111,7 +111,6 @@ SITES = { 'wanmen' : 'wanmen', 'weibo' : 'miaopai', 'veoh' : 'veoh', - 'vine' : 'vine', 'vk' : 'vk', 'x' : 'twitter', 'xiaokaxiu' : 'yixia', diff --git a/src/you_get/extractors/__init__.py b/src/you_get/extractors/__init__.py index 8c43a8bc..e68cd174 100755 --- a/src/you_get/extractors/__init__.py +++ b/src/you_get/extractors/__init__.py @@ -74,7 +74,6 @@ from .twitter import * from .ucas import * from .veoh import * from .vimeo import * -from .vine import * from .vk import * from .w56 import * from .wanmen import * diff --git a/src/you_get/extractors/tumblr.py b/src/you_get/extractors/tumblr.py index b0dc99f6..08e605e8 100644 --- a/src/you_get/extractors/tumblr.py +++ b/src/you_get/extractors/tumblr.py @@ -6,7 +6,6 @@ from ..common import * from .universal import * from .dailymotion import dailymotion_download from .vimeo import vimeo_download -from .vine import vine_download def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs): if re.match(r'https?://\d+\.media\.tumblr\.com/', url): @@ -125,9 +124,6 @@ def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs): elif re.search(r'dailymotion\.com', iframe_url): dailymotion_download(iframe_url, output_dir, merge=merge, info_only=info_only, **kwargs) return - elif re.search(r'vine\.co', iframe_url): - vine_download(iframe_url, output_dir, merge=merge, info_only=info_only, **kwargs) - return else: iframe_html = get_content(iframe_url) real_url = r1(r'([^<]*)', html) - stream = r1(r'', html) - if not stream: # https://vine.co/v/.../card - stream = r1(r'"videoUrl":"([^"]+)"', html) - if stream: - stream = stream.replace('\\/', '/') - else: - posts_url = 'https://archive.vine.co/posts/' + video_id + '.json' - json_data = json.loads(get_content(posts_url)) - stream = json_data['videoDashUrl'] - title = json_data['description'] - if title == "": - title = json_data['username'].replace(" ", "_") + "_" + video_id - - mime, ext, size = url_info(stream) - - print_info(site_info, title, mime, size) - if not info_only: - download_urls([stream], title, ext, size, output_dir, merge=merge) - - -site_info = "Vine.co" -download = vine_download -download_playlist = playlist_not_supported('vine')