DOI QR코드

DOI QR Code

Improving Twitter Search Function Using Twitter API

트위터 API를 활용한 트위터 검색 기능 개선

  • Received : 2017.12.06
  • Accepted : 2018.01.09
  • Published : 2018.03.31

Abstract

The basic search engine on Twitter shows not only tweets that contain search keywords, but also all articles written by users with nicknames containing search keywords. Since the tweets unrelated to the search keyword are exposed as search results, it is inconvenient to many users who want to search only tweets that include the keyword. To solve this inconvenience, this study improved the search function of Twitter by developing an algorithm that searches only tweets that contain search keywords. The improved functionality is implemented as a Web service using ASP.NET MVC5 and is available to many users. We used a powerful collection method in C# to retrieve the results of an object, and it was also possible to output them according to the number of 'retweets' or 'favorites'. If the number of retrieved numbers is less than a given number, we also added an exclusion filter function. Thus, sorting search results by the number of retweets or favorites, user can quickly search for opinions that are of interest to many users. It is expected that many users and data analysts will find the developed function convenient to search on Twitter.

트위터에서 제공해주는 기본 검색 기능은 검색어가 담긴 트윗 뿐 아니라 검색어를 포함하는 닉네임을 가진 유저가 쓰는 모든 트윗들을 보여준다. 따라서 검색 키워드와 관계 없는 트윗들도 검색 결과로 노출하게 되어 해당 키워드가 포함된 트윗 만을 검색하려고 하는 많은 사용자들에게 불편함을 주고 있다. 본 연구에서는 이러한 문제점을 해결하고자 검색 키워드가 들어있는 트윗만을 검색하는 알고리즘을 만들어 트위터 검색 기능을 개선하였다. 개선된 기능은 ASP.NET MVC5를 이용하여 웹 서비스로 구현하여 많은 사람들이 이용할 수 있다. 검색 결과를 모아놓은 객체에 C#의 강력한 컬렉션 메소드를 사용하여 '리트윗' 이나 '마음에 들어요' 의 개수가 많은 순서대로 출력할 수도 있고, 리트윗 숫자가 설정한 수치보다 적을 경우 검색 결과에서 제외할 수 있는 필터 기능도 추가하였다. 따라서 사람들에게 관심을 많이 받는 의견을 빠르게 탐색할 수도 있으며, 이는 검색 이용자와 데이터 분석가들이 트위터에서 검색하는데 편리함을 줄 것으로 기대된다.

Keywords