I'm currently working on a sentiment analysis problem that requires me to collect big data from Twitter and process it for later. As a first step, I thought it would be helpful to simply grab a single Tweet and study its structure. Here is a very simple way to get data from Twitter's API and write it to a file so that you can study it's internal workings using Twitter gem and Rails Console.
This entry will show you how to publish either to JSON or to YAML.
Step 1 - Create a rails app
If you don't know how to create a rails app, here's a quick tutorial. Here's my simple command.
rails _5.0.0_ new my_api_app --api
Change directory into your rails app.
Step 2 - Install Twitter Gem
Open up your Gemfile and add this line of code to the bottom.