https://github.com/molefrog/snowalytics
One-day-only project that is intended to show how everyday environmental changes are being reflected in social networks.
https://github.com/molefrog/snowalytics
Last synced: about 2 months ago
JSON representation
One-day-only project that is intended to show how everyday environmental changes are being reflected in social networks.
- Host: GitHub
- URL: https://github.com/molefrog/snowalytics
- Owner: molefrog
- Created: 2014-01-15T13:12:30.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-15T14:26:29.000Z (over 12 years ago)
- Last Synced: 2025-07-24T10:31:41.046Z (11 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 1.32 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The Snowalytics Project
-----------------------
One-day-only project that is intended to show how environmental changes are being reflected in
social networks.

## How it works?
The `data.json` file represents data about all Instagram photos taken near Rostov-on-Don, Russia 14th Janhuary 2014. This data was observed using the output of `grad.coffee` script. The script simply fetches portions of photos meta-information (since Instagram doesn't support normal search pagination) and stores it into single JSON file.
Another script was used to calculate statistics of how often the '#snow' tag was mentioned in these data. It also calculates class representatives - the most liked photos of every hour.
The resulting plot indeed shows that there was a slash at 4pm, almost exactly when the snow started to fall.
## How to use?
* Install node.js, NPM and CoffeeScript:
```
npm install -g coffee-script
```
* Create `config.json` file where the Instagram API keys are stored:
```json
{
"instagram" : {
"id" : "YOUR_API_KEY",
"secret" : "YOUR_API_SECRET"
}
}
```
* Run `grab.coffee` to fetch the data:
```
coffee grab.coffee
```
* Run `analyse.coffee` to analyse the data:
```
coffee analyze.coffee
```
The sample output:
```
┌──────┬───────┬────────────────────────────────────────────────┐
│ Hour │ Count │ Samples │
├──────┼───────┼────────────────────────────────────────────────┤
│ 15 │ 1 │ 43 likes - http://instagram.com/p/jJbpk9yLNk/ │
├──────┼───────┼────────────────────────────────────────────────┤
│ 16 │ 115 │ 179 likes - http://instagram.com/p/jJmpuWlYHt/ │
├──────┼───────┼────────────────────────────────────────────────┤
│ 17 │ 46 │ 145 likes - http://instagram.com/p/jJrjbbLZBz/ │
├──────┼───────┼────────────────────────────────────────────────┤
│ 18 │ 11 │ 23 likes - http://instagram.com/p/jJxMJRgUlR/ │
├──────┼───────┼────────────────────────────────────────────────┤
│ 19 │ 4 │ 28 likes - http://instagram.com/p/jJ2Bdus1Qz/ │
├──────┼───────┼────────────────────────────────────────────────┤
│ 20 │ 2 │ 10 likes - http://instagram.com/p/jJ9gKdnd--/ │
├──────┼───────┼────────────────────────────────────────────────┤
│ 24 │ 1 │ 13 likes - http://instagram.com/p/jH0rFFjS6r/ │
└──────┴───────┴────────────────────────────────────────────────┘
```