1
0
mirror of https://github.com/mgerb/top-of-reddit synced 2026-01-11 19:12:50 +00:00

generate statistics for the year of 2017

This commit is contained in:
2018-02-22 17:46:16 -06:00
parent 39b0d9d188
commit fd21f02812
10 changed files with 1330 additions and 36 deletions

23
src/model/reddit-post.go Normal file
View File

@@ -0,0 +1,23 @@
package model
// RedditPost -
type RedditPost struct {
Subreddit string `json:"subreddit"`
ID string `json:"id"`
Gilded int `json:"gilded"`
Score int `json:"score"`
Author string `json:"author"`
Domain string `json:"domain"`
Over_18 bool `json:"over_18"`
Thumbnail string `json:"thumbnail"`
Permalink string `json:"permalink"`
Url string `json:"url"`
Title string `json:"title"`
Created float64 `json:"created"`
Created_utc float64 `json:"created_utc"`
Num_comments int `json:"num_comments"`
Ups int `json:"ups"`
// extra fields
TopPosition int // highest achieved position on front page
}