[instagram] add faker

This commit is contained in:
Mort Yao 2020-12-11 02:02:44 +01:00
parent dbb1296d54
commit b00860e4be
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -6,7 +6,7 @@ from ..common import *
def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwargs): def instagram_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
url = r1(r'([^?]*)', url) url = r1(r'([^?]*)', url)
html = get_html(url) html = get_html(url, faker=True)
vid = r1(r'instagram.com/\w+/([^/]+)', url) vid = r1(r'instagram.com/\w+/([^/]+)', url)
description = r1(r'<meta property="og:title" content="([^"]*)"', html) or \ description = r1(r'<meta property="og:title" content="([^"]*)"', html) or \