From e00c3cf99f06e6f0c097e019219760cf26d16cbe Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 23 Jul 2019 23:53:04 -0700 Subject: Remove ad-hoc response saving from code, create a debug setting for fetch_url --- youtube/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/search.py') diff --git a/youtube/search.py b/youtube/search.py index 39a80bf..e35d0cb 100644 --- a/youtube/search.py +++ b/youtube/search.py @@ -53,7 +53,7 @@ def get_search_json(query, page, autocorrect, sort, filters): 'X-YouTube-Client-Version': '2.20180418', } url += "&pbj=1&sp=" + page_number_to_sp_parameter(page, autocorrect, sort, filters).replace("=", "%3D") - content = util.fetch_url(url, headers=headers, report_text="Got search results") + content = util.fetch_url(url, headers=headers, report_text="Got search results", debug_name='search_results') info = json.loads(content) return info -- cgit v1.2.3