GetTrendingTopic
현재 시장에서 벌어지고 있는 주요 이슈에 대한 문서를 가져옵니다.
Last updated
Was this helpful?
현재 시장에서 벌어지고 있는 주요 이슈에 대한 문서를 가져옵니다.
Last updated
Was this helpful?
GetTrendingTopic(
category, section, topic_uid,
count=10, summary=True,
highlight_query=None,
fields=None
)
Parameter
Type
Description
category
string or list of string
국내뉴스: news
section
string or list of string
정치: politics
경제: economy
사회: society
문화: culture
세계: world
기술/IT: tech
연예: entertainment
사설: opinion
topic_uid
integer
토픽의 ID
count
integer
결과로 나타나는 docs의 문서 수
summary
bool
연관 뉴스 content 를 요약할 것인지 설정
highlight_query
string
검색 결과에 하이라이트 할 키워드를 지정
fields
list of string
결과값으로 어떤 항목을 노출한 것인지 지정한다.
트랜딩 토픽 문서 결과
> GetTrendingTopic(["news"],["economy"],54469154)
{
"found": true,
"data": {
"scroll_id": null,
"current_page": 0,
"last_page": 0,
"topics": {
"news": {
"economy": [
{
"uid": 54469154,
"uid_str": "54469154",
"timestamp": "2020-08-07T16:20:00.000000",
"category": "news",
"section": "economy",
"rank": 1,
"score": 7.7828,
"topic": "국내증시 연고점 재경신 코스피 2350선 마감",
"keywords": [
{
"keyword": "2350선",
"freq": 16
},
{
"keyword": "1만1000선",
"freq": 10
},
{
"keyword": "뉴욕증시",
"freq": 9
},
{
"keyword": "2360선",
"freq": 6
},
{
"keyword": "1만1000돌파",
"freq": 5
}
],
"doc_uids": [
942897253075521663,
942897253075521670,
...
943258339578614137
],
"docs": [
{
"meta": {
"score": 0.0,
"version": 1
},
"uid": 943258339578614137,
"uid_str": "943258339578614137",
"revision": 1,
"category": "news",
"section": "economy",
"publisher": "파이낸셜뉴스",
"author": "김서연",
"title": "[fn마감시황] 코스피, 2350선 돌파.. 나흘 연속 연고점 경신",
"content": "7일 코스피는 전거래일 대비 9.06포인트(0.39%) 오른 2351.67로 장을 마쳤다.\n\n이날 코스피는 전거래일 대비 전거래일 대비 6.64포인트(0.28%)오른 2349.25로 개장했다.\n\n지난 4일 이후 4거래일 연속 장중 고가 기준 연고점을 갈아치웠다.",
"highlight": null,
"securities": [],
"entities": [
{
"type": "company",
"name": "LG화학"
},
{
"type": "company",
"name": "NAVER"
},
{
"type": "company",
"name": "SK하이닉스"
},
{
"type": "company",
"name": "삼성SDI"
},
{
"type": "company",
"name": "삼성전자"
},
{
"type": "company",
"name": "셀트리온"
}
],
"named_entities": [],
"tags": [],
"industry": {
"label": "100",
"name": "분류 제외, 기타",
"score": 0.978
},
"polarity": null,
"customized_ml": null,
"patent": null,
"content_url": "http://www.fnnews.com/news/202008071613437663",
"image_urls": [],
"attachments": [],
"attributes": {},
"created_at": "2020-08-07T16:15:00.000000",
"updated_at": "2020-08-07T16:15:00.000000"
}
],
"statistics": {
"doc_count": 70,
"securities": [
{
"type": "company",
"exchange": "KRX",
"market": "KOSPI",
"symbol": "051910",
"name": "LG화학",
"company_rid": "110111-2207995",
"business_rid": "107-81-98139",
"doc_count": 2
},
{
"type": "company",
"exchange": "KRX",
"market": "KOSPI",
"symbol": "039490",
"name": "키움증권",
"company_rid": "110111-1867948",
"business_rid": "107-81-76756",
"doc_count": 1
},
{
"type": "company",
"exchange": "KRX",
"market": "KOSDAQ",
"symbol": "267790",
"name": "배럴",
"company_rid": "110111-4256924",
"business_rid": "105-87-39951",
"doc_count": 1
}
],
"industries": [
{
"label": "B06",
"name": "금속 광업",
"min": 0.837,
"max": 1.0,
"mean": 0.97664,
"stddev": 0.04943,
"doc_count": 11
},
{
"label": "C14",
"name": "의복, 의복 액세서리 및 모피제품 제조업",
"min": 0.528,
"max": 0.835,
"mean": 0.6815,
"stddev": 0.1535,
"doc_count": 2
},
...
{
"label": "C24",
"name": "1차 금속 제조업",
"min": 0.336,
"max": 0.336,
"mean": 0.336,
"stddev": 0.0,
"doc_count": 1
}
],
"polarities": [
{
"label": "0",
"name": "중립",
"min": 0.985,
"max": 0.99,
"mean": 0.9875,
"stddev": 0.0025,
"doc_count": 2
},
{
"label": "1",
"name": "긍정",
"min": 0.756,
"max": 0.89,
"mean": 0.823,
"stddev": 0.067,
"doc_count": 2
}
]
}
...