Convert BuzzFeed to use the Status Code detection method. The site gives a clean 404 error. Add to tests.

pull/156/head
Christopher K. Hoadley 6 years ago
parent 08ac008828
commit 223d9716cb

@ -94,8 +94,7 @@
"urlMain": "https://www.blogger.com/" "urlMain": "https://www.blogger.com/"
}, },
"BuzzFeed": { "BuzzFeed": {
"errorMsg": "We can't find the page you're looking for.", "errorType": "status_code",
"errorType": "message",
"rank": 294, "rank": 294,
"url": "https://buzzfeed.com/{}", "url": "https://buzzfeed.com/{}",
"urlMain": "https://buzzfeed.com/" "urlMain": "https://buzzfeed.com/"

@ -159,7 +159,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
self.username_check(['noonewouldeverusethis7'], self.username_check(['noonewouldeverusethis7'],
["Academia.edu", "9GAG", "About.me", "AngelList", ["Academia.edu", "9GAG", "About.me", "AngelList",
"BLIP.fm", "Bandcamp", "Behance" "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed"
], ],
exist_check=False exist_check=False
) )
@ -182,7 +182,7 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
self.username_check(['blue'], self.username_check(['blue'],
["Academia.edu", "9GAG", "About.me", "AngelList", ["Academia.edu", "9GAG", "About.me", "AngelList",
"BLIP.fm", "Bandcamp", "Behance" "BLIP.fm", "Bandcamp", "Behance", "BuzzFeed"
], ],
exist_check=True exist_check=True
) )

Loading…
Cancel
Save