Intro
Tweet analysis is one of the most popular things to do as a data science. Here we will try to do some exploratory and network analysis of tweets about Grab Indonesia and Gojek Indonesia, the dominant ride hailing services in Indonesia. The data is scraped on 2019-10-28.
Library and Setup
First, we load the required library.
Login the Twitter App
To gain access via Twitter API, first you need to make a Twitter App Developer. If you done have one, you can follow this simple tutorial .
Create a token.
Search Twitter query
We can do a query on various tweets using the search_tweets()
. Here we fill our query @GrabID OR @gojekindonesia. To avoid retrieving a retweet, we can set the parameters include_rts = F
.