Repository navigation
Home
Welcome to the CATS wiki! This wiki will give you all the information you need to be able to use CATS to carry out your own projects. Several sections will guide you through the different aspects of CATS, so that you can have detailed information concerning all the tools which are available to you in CATS. This wiki will be updated regularly, but some elements may be missing or unclear, so do not hesitate to contact us if you have questions regarding any aspects of CATS.
CATS is a web interface hosted in the university of Lyon 2, in France. It is free to use, open, and accessible by anyone. Its goal is to provide researchers from various domains to easily have access to Twitter's API to collect and analyze data for their own studies.
In the past few years, there has been a growing interest in analyzing Twitter data for various purposes (marketing, medicine, social sciences, linguistics etc...). Accessing Twitter's API makes it possible for everyone to collect very specific corpora targeting a certain category of people, a certain region, or a certain language. As Twitter is a very popular social media, this represents a good way to have access to textual data from millions of users.
The problem with this method is that in order to have access to Twitter's API, and especially to collect a corpus with various filters (geolocation, keywords etc...), the programming knowledge required can be an obstacle to people who do not have that background. Moreover, we felt that the existing tools enabling to connect to Twitter's API were either not adapted to everyone, or too limited. Thus, the goal of CATS is to bridge that gap, and enable everyone to take advantage of this material, by providing an interface enabling to both collect, and analyze the tweets thanks to the ready-made tools that CATS provides.
The advantage of CATS is that everything is web-based, meaning that the only thing needed to use it is an Internet connection; the performance of your computer will not be a problem. The other advantage is that the interface is not fixed, and will evolve with time in order to provide new features that will suit a greater number of people. It will be regularly updated with the latest corpus analysis tools developed by the teams involved in the project. However, as nothing is perfect, CATS may not (yet) necessarily suit your needs, or may not enable you to do everything you would like to. Remember that it is just supposed to be a tool, and not an "all-in-one" solution. Thus, if you have questions regarding certain functions that you would like to see, feel free to contact us, as other people may be interested in it too, so the solution to your problem may be the solution to many people's problems. Again, the goal of CATS is to help as many people as possible, and raising questions or problems is the best way to improve it!
The essence of CATS is to be easy to use (and it really is!), however there are certain steps you need to perform before actually being able to use it. Indeed, connecting to Twitter's API requires you to have specific credentials provided by Twitter. The goal of this section is first to teach you how to get those credentials. Then, there are two main ways you can use CATS: as what we call a "Lyon-2-hosted" interface or as a self-hosted interface. Each method has its own advantages and disadvantages, and you need to be aware of those before deciding which method you are going to use, and we will review them in this section as well. Finally, we will explain the different collection methods, and analysis tools at your disposal so that you can understand how to use CATS in the most appropriate way according to your own needs.
Before using CATS to collect tweets through Twitter's API, you must be able to connect to it with specific access tokens with which you will be able to use OAuth. OAuth is an authentication protocol that allows users to approve application to act on their behalf without sharing their password (for more information concerning the exact way in which OAuth works, feel free to visit http://oauth.net/).
So, to get your own access tokens, you first have to have a Twitter account. If you don't have a Twitter account, you can create one here: https://twitter.com/signup
Once you logged-in to your (newly created) Twitter account, the next thing you have to do is to create an application on the Twitter Developer Site at https://dev.twitter.com/apps. Once it is created, in your new application's options, you should see a tab called "Key and Access Tokens", on which you will see your "Consumer Key", and your "Consumer Secret"; these are the access tokens you will need to connect to Twitter's API with CATS. Keep them a secret, they should never be made publicly available.
Now that you have your consumer key and secret ready to use, you have to choose the kind of CATS you are going to use. As we mentioned earlier, there are at the moment two versions of CATS. One version which will be hosted by the servers of the university of Lyon 2, and one version which will be hosted by your own server. Why would you go through the trouble of hosting your own server running CATS you may ask? Because both versions of CATS do not have the same advantages, and both have some limitations that we will review in the next two sections. What you have to understand though, is that both versions of CATS will be using the same interface. In other words, if you want to go from a version of CATS hosted by Lyon to a version hosted by one of your own servers, there will be no learning curve, they will be both identical. What changes simply is the person/organization hosting the server running CATS, that's it, but we will come back to that in greater details in the next section.
WE HAVE TO EXPLAIN HOW TO ENTER ONE'S CONSUMER KEYS AND SECRETS FOR BOTH VERSIONS OF CATS. As mentioned above, this version of CATS will be hosted on our servers, meaning that you will connect to CATS from your personal computer, send your requests to our server, and then it will take care of the rest, without you having to worry about anything. You will be able to monitor the progress of your collection of tweets in real time, and do all the kinds of analyses you wish from your own computer, but taking advantage of the power of our servers. In other words, if for your analyses you would need to process hundreds of millions of tweets with a very old computer, it may take a very long time, so the advantage of this method is that since everything is taken care by the servers in Lyon, you will not be limited by the power of your computer. That is the main advantage of using the Lyon-2-hosted version of CATS, as you will not depend on the resources of your computer for the collection, and the analyses of your data.
The problem with the Lyon-2-hosted version, on the other hand, is that the number of people collecting tweets thanks to CATS at the same time has to be limited in order for CATS to run optimally. Indeed, if many people use the Lyon 2 servers at the same time, the resources these servers will be able to allocate to each user will quickly become limited. This is why the Lyon-2-hosted CATS is not publicly accessible. In order to be able to use it, you first have to request a CATS login and password. This procedure will enable us to better monitor the number of people using CATS at the same time to ensure that the performances of our servers are constantly optimal. It will also facilitate the communication between us and CATS users, so that we can better guide them when using it.
Thus, if you request access to our servers to use CATS when the maximum number of users currently using it is already reached, you will have to wait for other users to stop collecting tweets with CATS to be able to use it. For this reason, we will limit the time of collection through this method to one month per user and per collection. This will enable everyone to have a chance to use CATS without having to wait too long.
To request access to the Lyon-2-hosted CATS, please refer to the contact section of this wiki to get all the details you need to know.
If you can't afford to wait a month (at most) to start using CATS, the alternative you have is to install it directly on your own computer, and use a self-hosted version of CATS.
I'M NOT SURE TO CLEARLY UNDERSTAND... DOES IT MEAN THAT IF SOMEONE WANTS TO USE THIS VERSION OF CATS, THEY WILL HAVE TO SETUP THEIR OWN ONLINE SERVERS ON THROUGH WHICH THEY WILL USE CATS, OR THAT THEY WILL INSTALL CATS ON THEIR OWN COMPUTERS? IN THE FIRST CASE, DOES IT MEAN THAT THEY WILL NOT HAVE TO LET THEIR OWN COMPUTER RUN FOR WEEKS IF THEY WANT TO KEEP COLLECTING TWEETS?
CATS is fairly easy to use, and we did our best to make it as user-friendly as possible. It should be obvious now, that the two main goals of CATS are to enable you to collect, and analyze tweets. This section is here to introduce you to these two aspect of CATS. To make things clearer for the user, we divided CATS into two parts, that we call dashboards: a collection dashboard, and an analysis dashboard. This section will introduce you to the different functions of both aspects of CATS.
Collecting tweets is obviously the first thing you have to do before being able to carry out a Twitter study of any kind, and there are different ways of doing it with CATS. This section will present the different parameters you can, and have to take into account when collecting a corpus. The screenshot below shows what the collection dashboard looks like:

On this dashboard, you can either choose to collect a new corpus or select a corpus collected previously. Each CATS user will be allocated their personal credentials giving access to a private account. Thus, the different corpora that you will collect with CATS will be accessible by no one else but you.
Each corpus collection has to have a limited duration that you must specify in this field. If you are using a Lyon-2-hosted CATS, the collection time will be limited to a maximum of 30 days per collection in order to allow everyone to have a chance to use it, as mentioned earlier. If you are using a self-hosted version of CATS however, you will be free to collect for as long as you please. Note that specifying a duration for your collection is mandatory.
Once a duration is chosen, you have to select certain filters you want to apply to your collection of tweets. This section will review the different filters available to you. The choice of filters will depend on what you wish to analyze in your analyses, and it is up to you to decide. For example, you may want to only collect tweets from a specific region, no matter the content of those tweets. Or you may want to collect tweets containing certain words which are key to your research. Finally, you may also want to focus on specific Twitter users, and collect all the tweets that this user tweeted. Note that for the collection process, you can only apply one of those filters. Thus, you cannot collect tweets from a specific region AND containing specific words. What you can do however, if you absolutely need to combine those two aspects, is collect all the tweets from the region which is of interest to you, and then, when using the analysis dashboard, isolate only the tweets containing the words you are interested in. Do not hesitate to contact us if you are unsure of the methodology to adopt to combine several parameters in the most efficient way.
In this section, we will keep an up-to-date list of all the studies using CATS, so that users can easily be pointed to relevant work, and have an idea of what it is possible to do with it. If you are aware of studies which are not listed here, or are yourself a user of CATS in a study that you published, please contact us so that we can update this list.
- [What is CATS?] (https://github.com/CATS-Project/CATS/wiki#what-is-cats)
- [How to connect to CATS] (https://github.com/CATS-Project/CATS/wiki#how-to-connect-to-cats)
- [Getting your Twitter OAuth and logging in to CATS] (https://github.com/CATS-Project/CATS/wiki#getting-your-twitter-oauth-and-logging-in-to-cats-a-completer)
- [What kinds of CATS are there?] (https://github.com/CATS-Project/CATS/wiki#what-kinds-of-cats-are-there)
- [Lyon-2-hosted CATS] (https://github.com/CATS-Project/CATS/wiki#lyon-2-hosted-cats)
- [Self-hosted CATS] (https://github.com/CATS-Project/CATS/wiki#self-hosted-cats)
-
Tweet collection dashboard
- [Duration] (https://github.com/CATS-Project/CATS/wiki#duration)
- [Language] (https://github.com/CATS-Project/CATS/wiki#language)
- [Collection filters] (https://github.com/CATS-Project/CATS/wiki#collection-filters)
- [Keyword filter] (https://github.com/CATS-Project/CATS/wiki#keyword-filter)
- [Location filter] (https://github.com/CATS-Project/CATS/wiki#location-filter)
- [User filter] (https://github.com/CATS-Project/CATS/wiki#user-filter)
- [Tweet analysis dashboard] (https://github.com/CATS-Project/CATS/wiki#tweet-analysis-dashboard)
- [Corpus filtering] (https://github.com/CATS-Project/CATS/wiki#corpus-filtering)
- [Tweets and their meta-data... Meta what?] (https://github.com/CATS-Project/CATS/wiki#tweets-and-their-meta-data-meta-what-)
- [Corpus browsing] (https://github.com/CATS-Project/CATS/wiki#corpus-browsing)
- [Vocabulary] (https://github.com/CATS-Project/CATS/wiki#vocabulary)
- [Tweets] (https://github.com/CATS-Project/CATS/wiki#tweets)
- [Corpus Mining] (https://github.com/CATS-Project/CATS/wiki#corpus-mining)
- [Named-entity recognition] (https://github.com/CATS-Project/CATS/wiki#named-entity-recognition)
- [Topic modeling] (https://github.com/CATS-Project/CATS/wiki#topic-modeling)
- [Latent Dirichlet Allocation] (https://github.com/CATS-Project/CATS/wiki#latent-dirichlet-allocation-lda)
- [Latent Semantic Analysis] (https://github.com/CATS-Project/CATS/wiki#latent-semantic-analysis-lsa)
- [Event detection and tracking] (https://github.com/CATS-Project/CATS/wiki#event-detection-and-tracking)
- [How CATS works] (https://github.com/CATS-Project/CATS/wiki#how-cats-works)
- [CATS and Twitter's API] (https://github.com/CATS-Project/CATS/wiki#cats-and-twitters-api)
- [Want to contribute to CATS?] (https://github.com/CATS-Project/CATS/wiki#want-to-contribute-to-cats-)
- [Want to report an issue?] (https://github.com/CATS-Project/CATS/wiki#want-to-report-an-issue-)
- [Terms of use and privacy] (https://github.com/CATS-Project/CATS/wiki#terms-of-use-and-privacy)
- [Contact] (https://github.com/CATS-Project/CATS/wiki#contact)
- [References] (https://github.com/CATS-Project/CATS/wiki#references)
- [Publications] (https://github.com/CATS-Project/CATS/wiki#publications)