Convert Bandcamp 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 c76b4524da
commit 65e3820608

@ -55,8 +55,7 @@
"urlMain": "https://badoo.com/"
},
"Bandcamp": {
"errorMsg": "Sorry, that something isn\u2019t here",
"errorType": "message",
"errorType": "status_code",
"rank": 573,
"url": "https://www.bandcamp.com/{}",
"urlMain": "https://www.bandcamp.com/"

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

Loading…
Cancel
Save