CSDN质量分批量查询

2024-01-03 16:56:51

单个文章质量分查询地址(点击右边地址):?CSDN质量分查询

?

创作者身份认证审核标准

优质创作者申请条件:

  • 粉丝数在5000以上
  • 近30日(申请日算起)原创文章数不少于4篇
  • 原创博文总数不少于100篇
  • 垂直领域原创数量不低于总文章数的60%
  • 垂直领域近2年原创博文质量平均分不得低于80分

新星创作者申请条件:

粉丝数在2000以上
近30日(申请日算起)原创文章数不少于4篇
原创博文总数不少于50篇
垂直领域原创数量不低于总文章数的60%
垂直领域近2年原创博文质量平均分不得低于70分

其他特殊身份认证申请条件(如果博主有以下特殊身份):

拥有个人发明专利
是技术图书作者
全国技术比赛获奖者
大学讲师
特殊身份认证在申请认证的时候可以描述为「《xxx》书籍作者」「xxx专利发明者」等等,只要提交相关证明同时粉丝数在500以上即可申请,若文章不存在抄袭的情况可通过审核

优质创作者和新星创作者只要满足以上条件基本都会通过审核。但是也有特殊的不会通过审核情况,具体如下:

文章质量过低
认证描述不清不楚
文章存在抄袭行为
文章多为毕设相关
若通过认证后被举报抄袭且被证实将取消认证资格
所以在申请的时候也需要查询自己的文章质量分
————————————————
?
上面标准请参照原文链接:https://blog.csdn.net/blogdevteam/article/details/128491544

?

批量质量分查询java实现

controller中写

	@ApiOperation(value = "csdnCheck", httpMethod = "POST", response = ResponseData.class, notes = "csdnCheck")
	@PostMapping("csdnCheck")
	public ResponseData< List<ScoreModel>> csdnCheck(Map<String, Object> param) {
		try {
            //传入两个参数,一个是页数 一个是你的csdn id (4是页数 ,dongjing991是id)
			 List<ScoreModel> list = tmpMUserService.csdnCheck("4", "dongjing991");
			return ResponseData.success(list);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return ResponseData.error();
	}

service中写

    public List<ScoreModel>  csdnCheck(String page,String userId){
        //首先查询所有的文章
        String url = "https://blog.csdn.net/community/home-api/v1/get-business-list?page="+page+"&size=500&businessType=blog&orderby=&noMore=false&year=&month=&username="+userId;
        System.out.println(url);
        JSONObject forObject = restTemplate.getForObject(url, JSONObject.class);
        LinkedHashMap data = (LinkedHashMap)forObject.get("data");
        ArrayList list = (ArrayList)data.get("list");

        List<String> urlList = new ArrayList<>();
        for (Object o : list) {
            LinkedHashMap one = (LinkedHashMap) o;
            urlList.add(String.valueOf(one.get("url")));
        }
//
//        //循环调用csdn接口查询所有的博客质量分
        String urlScore = "https://bizapi.csdn.net/trends/api/v1/get-article-score";
//
        //请求头
        HttpHeaders headers = new HttpHeaders();
        headers.set("accept","application/json, text/plain, */*");
        headers.set("x-ca-key","203930474");
        headers.set("x-ca-nonce","f1f92ccc-32-40dc-9272-c4f82012eb15");
        headers.set("x-ca-signature","uoECjD7M6u9oTBuDo+MxUulOv3TpQxy9aYeWzJMBs=");
        headers.set("x-ca-signature-headers","x-ca-key,x-ca-nonce");
        headers.set("x-ca-signed-content-type","multipart/form-data");

        headers.setContentType(MediaType.MULTIPART_FORM_DATA);


        //调用接口获取数据
        List<ScoreModel> scoreModels = new ArrayList<>();
        for (String bkUrl : urlList) {
            MultiValueMap<String,String> requestBody = new LinkedMultiValueMap<>();
            requestBody.put("url", Collections.singletonList(bkUrl));
            HttpEntity<MultiValueMap<String, String>> requestEntity = new HttpEntity<>(requestBody, headers);

            URI uri = URI.create(urlScore);

            ResponseEntity<String> responseEntity = restTemplate.postForEntity(uri, requestEntity, String.class);
            JSONObject data1 = JSON.parseObject(responseEntity.getBody(),JSONObject.class) ;
            ScoreModel scoreModel = JSONObject.parseObject(data1.get("data").toString(),ScoreModel.class);
            if (Integer.parseInt(scoreModel.getScore().toString()) > 80) {
            	   System.out.println(data1);	
            }
         
            scoreModels.add(scoreModel);
        }
        return scoreModels;
    }

请求头的参数根据自己的实际填写

? ?//请求头
? ? ? ? HttpHeaders headers = new HttpHeaders();
? ? ? ? headers.set("accept","application/json, text/plain, */*");
? ? ? ? headers.set("x-ca-key","203930474");
? ? ? ? headers.set("x-ca-nonce","f1f92ccc-33a40dc-9272-c4f82012eb15");
? ? ? ? headers.set("x-ca-signature","uoECjD7iMM6u9oTDo+MxUulOv3TpQxy9aYeWzJMBs=");
? ? ? ? headers.set("x-ca-signature-headers","x-ca-key,x-ca-nonce");
? ? ? ? headers.set("x-ca-signed-content-type","multipart/form-data");

{"code":200,"data":{"article_id":"127745244","score":85,"message":"文章质量良好","post_time":"2022-11-08 10:32:15"},"message":"success"}
{"code":200,"data":{"article_id":"127731341","score":85,"message":"文章质量良好","post_time":"2022-11-07 14:59:38"},"message":"success"}
{"code":200,"data":{"article_id":"127730386","score":87,"message":"文章质量良好","post_time":"2022-11-07 14:22:06"},"message":"success"}
{"code":200,"data":{"article_id":"127726823","score":85,"message":"文章质量良好","post_time":"2022-11-07 10:47:55"},"message":"success"}
{"code":200,"data":{"article_id":"127725506","score":88,"message":"文章质量良好","post_time":"2022-11-07 09:46:47"},"message":"success"}
{"code":200,"data":{"article_id":"127724960","score":87,"message":"文章质量良好","post_time":"2022-11-07 09:18:04"},"message":"success"}
{"code":200,"data":{"article_id":"127692714","score":92,"message":"文章质量良好","post_time":"2022-11-04 17:14:14"},"message":"success"}
{"code":200,"data":{"article_id":"127688245","score":85,"message":"文章质量良好","post_time":"2022-11-04 14:28:24"},"message":"success"}
{"code":200,"data":{"article_id":"127684198","score":90,"message":"文章质量良好","post_time":"2022-11-04 10:58:02"},"message":"success"}
{"code":200,"data":{"article_id":"127683359","score":90,"message":"文章质量良好","post_time":"2022-11-04 10:16:13"},"message":"success"}
{"code":200,"data":{"article_id":"127645638","score":83,"message":"文章质量良好","post_time":"2022-11-02 09:58:31"},"message":"success"}
{"code":200,"data":{"article_id":"127627251","score":82,"message":"文章质量良好","post_time":"2022-11-01 14:50:15"},"message":"success"}
{"code":200,"data":{"article_id":"127430417","score":89,"message":"文章质量良好","post_time":"2022-10-20 16:51:32"},"message":"success"}
{"code":200,"data":{"article_id":"127429642","score":90,"message":"文章质量良好","post_time":"2022-10-20 16:22:13"},"message":"success"}
{"code":200,"data":{"article_id":"127427439","score":83,"message":"文章质量良好","post_time":"2022-10-20 15:03:14"},"message":"success"}
{"code":200,"data":{"article_id":"127423473","score":82,"message":"文章质量良好","post_time":"2022-10-20 11:28:42"},"message":"success"}
{"code":200,"data":{"article_id":"127421330","score":90,"message":"文章质量良好","post_time":"2022-10-20 10:18:15"},"message":"success"}
{"code":200,"data":{"article_id":"127412786","score":81,"message":"文章质量良好","post_time":"2022-10-19 17:54:51"},"message":"success"}
{"code":200,"data":{"article_id":"127410042","score":92,"message":"文章质量良好","post_time":"2022-10-19 16:26:36"},"message":"success"}
{"code":200,"data":{"article_id":"127407077","score":92,"message":"文章质量良好","post_time":"2022-10-19 14:33:10"},"message":"success"}
{"code":200,"data":{"article_id":"127404748","score":85,"message":"文章质量良好","post_time":"2022-10-19 11:37:10"},"message":"success"}
{"code":200,"data":{"article_id":"127404256","score":83,"message":"文章质量良好","post_time":"2022-10-19 11:28:50"},"message":"success"}
{"code":200,"data":{"article_id":"127403835","score":85,"message":"文章质量良好","post_time":"2022-10-19 11:03:16"},"message":"success"}
{"code":200,"data":{"article_id":"127403237","score":90,"message":"文章质量良好","post_time":"2022-10-19 10:46:36"},"message":"success"}
{"code":200,"data":{"article_id":"127402733","score":84,"message":"文章质量良好","post_time":"2022-10-19 10:34:18"},"message":"success"}
{"code":200,"data":{"article_id":"119967191","score":89,"message":"文章质量良好","post_time":"2021-08-28 15:08:14"},"message":"success"}
{"code":200,"data":{"article_id":"119932331","score":81,"message":"文章质量良好","post_time":"2021-08-26 16:55:16"},"message":"success"}
{"code":200,"data":{"article_id":"79496907","score":83,"message":"文章质量良好","post_time":"2018-03-09 14:19:52"},"message":"success"}
{"code":200,"data":{"article_id":"78327315","score":90,"message":"文章质量良好","post_time":"2017-10-24 11:03:33"},"message":"success"}
{"code":200,"data":{"article_id":"50533136","score":92,"message":"文章质量良好","post_time":"2016-01-17 19:54:14"},"message":"success"}
{"code":200,"data":{"article_id":"50529027","score":92,"message":"文章质量良好","post_time":"2016-01-16 18:01:54"},"message":"success"}
{"code":200,"data":{"article_id":"50528137","score":92,"message":"文章质量良好","post_time":"2016-01-16 14:59:47"},"message":"success"}
{"code":200,"data":{"article_id":"50419671","score":93,"message":"文章质量良好","post_time":"2015-12-28 16:19:43"},"message":"success"}
{"code":200,"data":{"article_id":"50394812","score":92,"message":"文章质量良好","post_time":"2015-12-24 15:39:45"},"message":"success"}
{"code":200,"data":{"article_id":"50384428","score":82,"message":"文章质量良好","post_time":"2015-12-23 09:38:29"},"message":"success"}
{"code":200,"data":{"article_id":"50315447","score":85,"message":"文章质量良好","post_time":"2015-12-15 14:50:13"},"message":"success"}
{"code":200,"data":{"article_id":"50260601","score":84,"message":"文章质量良好","post_time":"2015-12-11 11:00:30"},"message":"success"}
{"code":200,"data":{"article_id":"50260291","score":84,"message":"文章质量良好","post_time":"2015-12-11 10:23:41"},"message":"success"}
{"code":200,"data":{"article_id":"38068007","score":86,"message":"文章质量良好","post_time":"2014-07-23 17:43:33"},"message":"success"}

?

文章来源:https://blog.csdn.net/dongjing991/article/details/135366043
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。