123456789101112131415161718192021222324252627282930 |
- """
- @author: luojunhui
- """
- import requests
- class Functions(object):
- """
- functions class
- """
- @classmethod
- def getTitleScore(cls, title_list, account_name):
- """
- 标题打分
- :param title_list:
- :param account_name:
- :return:
- """
- url = "http://192.168.100.31:8179/score_list"
- body = {
- "account_nickname_list": [account_name],
- "text_list": title_list,
- "max_time": None,
- "min_time": None,
- "interest_type": "by_avg",
- "sim_type": "mean",
- "rate": 0.1
- }
- response = requests.post(url=url, headers={}, json=body).json()
- return response
|