123456789101112131415161718192021222324252627282930313233 |
- """
- @author: luojunhui
- """
- import json
- import requests
- class ArticleRank(object):
- """
- 账号排序
- """
- url = "http://192.168.100.31:8179/score_list"
- @classmethod
- def rank(cls, account_list, text_list):
- """
- Rank
- :param account_list:
- :param text_list:
- :return:
- """
- body = {
- "account_nickname_list": account_list,
- "text_list": text_list,
- "max_time": None,
- "min_time": None,
- "interest_type": "by_avg",
- "sim_type": "mean",
- "rate": 0.1
- }
- response = requests.post(url=cls.url, headers={}, json=body).json()
- return response
|