How to pull 5 most recent tweets and number of followers


My uncle has asked me to find a way to pull the 5 most recent tweets and the number of followers a person has. He wants me to use a .csv that contains a list of 500 accounts that need the data pulled. I have set up a web server to do such a thing but have no idea how to even begin writing the code for such a task. Anybody got any ideas? Also would be helpful to know if I am even supposed to be doing such a thing.