From 19d73ac118754205511221d2af546ce06fae4c29 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Sat, 9 Feb 2019 20:23:01 -0600 Subject: [PATCH] Convert Zhihu to use Response URL detection. For some reason the site returns a 405 HTTP Status for a known user (e.g. https://www.zhihu.com/people/blue). Add to tests. --- data.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data.json b/data.json index 8f0efb9c..45352470 100644 --- a/data.json +++ b/data.json @@ -1123,11 +1123,13 @@ "username_unclaimed": "noonewouldeverusethis7" }, "Zhihu": { - "errorMsg": "404", - "errorType": "message", + "errorType": "response_url", + "errorUrl": "https://www.zhihu.com/people/{}", "rank": 81, "url": "https://www.zhihu.com/people/{}", - "urlMain": "https://www.zhihu.com/" + "urlMain": "https://www.zhihu.com/", + "username_claimed": "blue", + "username_unclaimed": "noonewouldeverusethis7" }, "devRant": { "errorType": "response_url",