From 73b4fbabf7c5f46975ebc69cc3d2a66600e98514 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 10 Jan 2022 13:23:04 +1300 Subject: [PATCH] Do not actually write out pages. --- extractors/channel.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/extractors/channel.py b/extractors/channel.py index 58c4adf..39475d9 100644 --- a/extractors/channel.py +++ b/extractors/channel.py @@ -170,9 +170,6 @@ def extract_channel_latest(ucid): with requests.get("https://www.youtube.com/feeds/videos.xml?channel_id={}".format(ucid)) as r: if r.status_code == 404: cherrypy.response.status = 404 - # write out page data for debugging - with open("channel_not_found_{}.xml".format(ucid), "wb") as f: - f.write(r.content) return { "error": "This channel does not exist.", "identifier": "NOT_FOUND"