From 17c740ae542e4ce2285da8775152cde8cbc782b8 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Thu, 17 Dec 2020 02:01:23 +0100 Subject: [PATCH] [twitter] add faker --- src/you_get/extractors/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/twitter.py b/src/you_get/extractors/twitter.py index 602c18f6..23468211 100644 --- a/src/you_get/extractors/twitter.py +++ b/src/you_get/extractors/twitter.py @@ -34,7 +34,7 @@ def twitter_download(url, output_dir='.', merge=True, info_only=False, **kwargs) **kwargs) return - html = get_html(url, faker=False) # disable faker to prevent 302 infinite redirect + html = get_html(url, faker=True) # now it seems faker must be enabled screen_name = r1(r'twitter\.com/([^/]+)', url) or r1(r'data-screen-name="([^"]*)"', html) or \ r1(r'