From 223d9716cbfa45291d0d1365b154ab76c6b8d1ee Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 18:04:24 -0600 Subject: [PATCH] Convert BuzzFeed to use the Status Code detection method. The site gives a clean 404 error. Add to tests. --- data.json | 3 +-- tests/all.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data.json b/data.json index 33f2798c..e40a97df 100644 --- a/data.json +++ b/data.json @@ -94,8 +94,7 @@ "urlMain": "https://www.blogger.com/" }, "BuzzFeed": { - "errorMsg": "We can't find the page you're looking for.", - "errorType": "message", + "errorType": "status_code", "rank": 294, "url": "https://buzzfeed.com/{}", "urlMain": "https://buzzfeed.com/" diff --git a/tests/all.py b/tests/all.py index 2758e633..395945d2 100644 --- a/tests/all.py +++ b/tests/all.py @@ -159,7 +159,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['noonewouldeverusethis7'], ["Academia.edu", "9GAG", "About.me", "AngelList", - "BLIP.fm", "Bandcamp", "Behance" + "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed" ], exist_check=False ) @@ -182,7 +182,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest): self.username_check(['blue'], ["Academia.edu", "9GAG", "About.me", "AngelList", - "BLIP.fm", "Bandcamp", "Behance" + "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed" ], exist_check=True )