dmegahan / TwitchStats

Python bot for scraping mutliple Twitch.tv streams and IRCs for stream statistics
Apache License 2.0
1 stars 0 forks source link

Thought: All-time data should be part of the stream session json files #33

Open dmegahan opened 9 years ago

dmegahan commented 9 years ago

As their own dictionary of values. That way, we have records of old all time values, when we update the website. Originally, I thought I would have a global json file for each streamer, that would increment their stream statistics like total stream time, highest number of viewers, etc, and those values would be overwritten after a stream sesssion computes. A better way would be to compute all time statistics and include them in the json that hold the rest of the stream stats. When we do that, we don't lose any data (even if its "old") and we can easily reference older data if the streamer requests it (like if we have a feature where you can view your old graphs/stats, on the website).