From 69c61b11760e1650b071b8273349f07df482edee Mon Sep 17 00:00:00 2001 From: kagamia Date: Sun, 11 Jul 2021 21:49:31 +0800 Subject: [PATCH] miaopai: use weibo h5 api --- src/you_get/extractors/miaopai.py | 51 ++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/src/you_get/extractors/miaopai.py b/src/you_get/extractors/miaopai.py index 0ddcadba..05c1e650 100644 --- a/src/you_get/extractors/miaopai.py +++ b/src/you_get/extractors/miaopai.py @@ -19,7 +19,7 @@ fake_headers_mobile = { def miaopai_download_by_fid(fid, output_dir = '.', merge = False, info_only = False, **kwargs): '''Source: Android mobile''' - page_url = 'http://video.weibo.com/show?fid=' + fid + '&type=mp4' + page_url = 'https://video.weibo.com/show?fid=' + fid + '&type=mp4' mobile_page = get_content(page_url, headers=fake_headers_mobile) url = match1(mobile_page, r'