Editing Intro to Programming and Data Science (Fall 2023)/Week 9 Coding Challenges

From CommunityData

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
In our earlier assignment, we played around with the Reddit API and you learned how to query APIs. In the project, we're going to try to move from this technical understanding to actually using APIs to answer real questions.
In our earlier assignment, we played around with the Twitter API and you learned how to query APIs. In the project, we're going to try to move from this technical understanding to actually using APIs to answer real questions.


Do the following, in a Jupyter notebook:
Do the following, in a Jupyter notebook:
Line 5: Line 5:
'''The Question'''
'''The Question'''


Identify a question that Reddit data (or data gathered from another API) could help you to answer. Figure out a query that would gather that data.
Identify a question that Twitter data (or data gathered from another API) could help you to answer. Figure out a query that would gather that data.


* Explain the question you would like to answer, and why it is interesting.
* Explain the question you would like to answer, and why it is interesting.
Line 12: Line 12:
'''Gathering Data'''
'''Gathering Data'''


* Save the '''raw data''' that you get from PRAW
* Save the '''raw data''' that Twitter returns in a .json file
* Write code that filters the data into what you are interested in and saves it as a CSV file.
* Write code that filters the JSON data into what you are interested in and saves it as a CSV file.


'''Analysis'''
'''Analysis'''
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)