reddit-place-2022

command module
v0.0.0-...-0ba60c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 17 Imported by: 0

README

reddit-place-2022

A Go download and processing tool for Reddit's 2022 r/place April Fools data.

Makes use of Devin Smith's incredible Parquet-packaged dataset, more details here: https://deephaven.io/blog/2022/04/08/place-csv-to-parquet/

This eliminates the need for over 22Gb of CSV data (or a ~90Gb Postgres DB).

Installation

  1. Install Go 1.18
  2. Clone this repo: git clone https://github.com/denverquane/reddit-place-2022
  3. Build or run the code: go build main.go (builds executable) or go run main.go

Usage

Run go run main.go or

go build main.go followed by ./main or ./main.exe

The application will download the parquet file if it doesn't exist, and, at the time of writing, iterate over all the events and generate a number of output png images to images/

These include:

// the final image of place (includes white-out pixel events)
place.png 

// snapshots for every 5% of total pixels drawn to place (todo this should be time-based)
place_<percent>.png 

// snapshots of regions before they were blanked-out by moderator intervention
place_mod_[<start>]-[<end>].png

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL