Graph different subreddits usage per hour for a day!
Goals
- Populate arrays with items
- Get data from other classes
- Use Unix timestamps
Description
Students will write code to itterate over a collection of Reddit posts. Their code will count the number of posts in each hour
Example Output
This is using all the data provided, notice how cluttered it is. You can choose to use specific subreddits by limiting the array, rather then the full dataset.
Programming
Tasks
- Populate xValues array with hours 0-24 in a day (24 Time format)
- Create a for loop to iterate over reddit array.
- Get the hours from each post given
- Convert unix time into hours using language specific
- Get the hours from each post given
- Increase the value of the (hour) slot of the array by one for each post
Help
Reddit dataset tutorial
For C++
C++ Reddit Class
For Java
Java Reddit Class Documentation
Calender class documentation
For Python
Python Reddit Class Documentation
Python Datetime Documentation