Skip to content

Commit

Permalink
Convert BuzzFeed to use the Status Code detection method. The site gi…
Browse files Browse the repository at this point in the history
…ves a clean 404 error. Add to tests.
  • Loading branch information
hoadlck committed Jan 31, 2019
1 parent 08ac008 commit 223d971
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
4 changes: 2 additions & 2 deletions tests/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_coverage_false_via_status(self):

self.username_check(['noonewouldeverusethis7'],
["Academia.edu", "9GAG", "About.me", "AngelList",
"BLIP.fm", "Bandcamp", "Behance"
"BLIP.fm", "Bandcamp", "Behance", "BuzzFeed"
],
exist_check=False
)
Expand All @@ -182,7 +182,7 @@ def test_coverage_true_via_status(self):

self.username_check(['blue'],
["Academia.edu", "9GAG", "About.me", "AngelList",
"BLIP.fm", "Bandcamp", "Behance"
"BLIP.fm", "Bandcamp", "Behance", "BuzzFeed"
],
exist_check=True
)
Expand Down

0 comments on commit 223d971

Please sign in to comment.