From 3eb86161ce56a2b2a152935d46f66f94627f3ff3 Mon Sep 17 00:00:00 2001 From: Alexander Sheiko Date: Thu, 11 May 2023 13:36:32 +0300 Subject: [PATCH] Fix 403 error --- api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api.go b/api.go index 3f6d253..25b065f 100644 --- a/api.go +++ b/api.go @@ -53,8 +53,7 @@ func (s *Scraper) RequestAPI(req *http.Request, target interface{}) error { return err } - // private profiles return forbidden, but also data - if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusForbidden { + if resp.StatusCode != http.StatusOK { return fmt.Errorf("response status %s: %s", resp.Status, content) }