From fbf352579cf04bcea731bd49d82902280f8489cb Mon Sep 17 00:00:00 2001 From: Arctic4161 <64910295+Arctic4161@users.noreply.github.com> Date: Mon, 11 Oct 2021 16:44:48 -0500 Subject: [PATCH] Update backend.py Added refer to get around 403 forbidden error --- src/backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend.py b/src/backend.py index 3a573e3..bb6283b 100644 --- a/src/backend.py +++ b/src/backend.py @@ -82,6 +82,7 @@ class Download: "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept-Language": "en-US,en;q=0.5", "Accept-Encoding": "gzip, deflate", + "Referer": "https://gogoanime.pe/", "Connection": "close", } with req.get(url[1], headers=header, stream=True) as res: