Skip to content

Instantly share code, notes, and snippets.

@PinkPandaKatie
Last active October 28, 2015 10:15
Show Gist options
  • Save PinkPandaKatie/57178e2967aae701fc9a to your computer and use it in GitHub Desktop.
Save PinkPandaKatie/57178e2967aae701fc9a to your computer and use it in GitHub Desktop.
curl 'https://derpibooru.org/images.json?nocomments=1&perpage=50&nofav=1&deleted=1&constraint=updated&order=d&lt=2015-10-28T08%3A44%3A23.9191Z' | ./jsonpp.py|grep updated_at
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 86087 0 86087 0 0 148k 0 --:--:-- --:--:-- --:--:-- 148k
"updated_at": "2015-10-28T08:44:23.9135Z",
"updated_at": "2015-10-28T08:44:23.9061Z",
"updated_at": "2015-10-28T08:44:23.8984Z",
"updated_at": "2015-10-28T08:44:23.8903Z",
"updated_at": "2015-10-28T08:44:23.8829Z",
"updated_at": "2015-10-28T08:44:23.8760Z",
"updated_at": "2015-10-28T08:44:23.8628Z",
"updated_at": "2015-10-28T08:44:23.8564Z",
"updated_at": "2015-10-28T08:44:23.8520Z",
"updated_at": "2015-10-28T08:44:23.8412Z",
"updated_at": "2015-10-28T08:44:23.8367Z",
"updated_at": "2015-10-28T08:44:23.8308Z",
"updated_at": "2015-10-28T08:44:23.8263Z",
"updated_at": "2015-10-28T08:44:23.8169Z",
"updated_at": "2015-10-28T08:44:23.8105Z",
"updated_at": "2015-10-28T08:44:23.8075Z",
"updated_at": "2015-10-28T08:44:23.8031Z",
"updated_at": "2015-10-28T08:44:23.7966Z",
"updated_at": "2015-10-28T08:44:23.7834Z",
"updated_at": "2015-10-28T08:44:23.7795Z",
"updated_at": "2015-10-28T08:44:23.7763Z",
"updated_at": "2015-10-28T08:44:23.7590Z",
"updated_at": "2015-10-28T08:44:23.7462Z",
"updated_at": "2015-10-28T08:44:23.7395Z",
"updated_at": "2015-10-28T08:44:23.7352Z",
"updated_at": "2015-10-28T08:44:23.7299Z",
"updated_at": "2015-10-28T08:44:23.7237Z",
"updated_at": "2015-10-28T08:44:23.7190Z",
"updated_at": "2015-10-28T08:44:23.7127Z",
"updated_at": "2015-10-28T08:44:23.7061Z",
"updated_at": "2015-10-28T08:44:23.6998Z",
"updated_at": "2015-10-28T08:44:23.6915Z",
"updated_at": "2015-10-28T08:44:23.6873Z",
"updated_at": "2015-10-28T08:44:23.6812Z",
"updated_at": "2015-10-28T08:44:23.6731Z",
"updated_at": "2015-10-27T00:26:50.7176Z",
"updated_at": "2015-10-27T00:26:50.4647Z",
"updated_at": "2015-10-28T08:35:14.9740Z",
"updated_at": "2015-10-27T00:26:50.3606Z",
"updated_at": "2015-10-27T00:26:50.2568Z",
"updated_at": "2015-10-27T00:26:49.8773Z",
"updated_at": "2015-10-27T00:26:49.7946Z",
"updated_at": "2015-10-27T00:26:49.7534Z",
"updated_at": "2015-10-28T08:32:18.5109Z",
"updated_at": "2015-10-27T00:26:49.6701Z",
"updated_at": "2015-10-27T00:26:49.6110Z",
"updated_at": "2015-10-27T00:26:49.3753Z",
"updated_at": "2015-10-27T00:26:49.3379Z",
"updated_at": "2015-10-27T00:26:49.1597Z",
"updated_at": "2015-10-28T08:36:22.4630Z",
curl 'https://derpibooru.org/images.json?nocomments=1&perpage=50&nofav=1&deleted=1&constraint=updated&order=d&lt=2015-10-28T00%3A26%3A39.3060Z' | ../scripts/jsonpp.py|grep updated_at
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 80819 0 80819 0 0 85327 0 --:--:-- --:--:-- --:--:-- 85252
"updated_at": "2015-10-27T00:26:50.7176Z",
"updated_at": "2015-10-27T00:26:50.4647Z",
"updated_at": "2015-10-28T08:35:14.9740Z",
"updated_at": "2015-10-27T00:26:50.3606Z",
"updated_at": "2015-10-27T00:26:50.2568Z",
"updated_at": "2015-10-27T00:26:49.8773Z",
"updated_at": "2015-10-27T00:26:49.7946Z",
"updated_at": "2015-10-27T00:26:49.7534Z",
"updated_at": "2015-10-28T08:32:18.5109Z",
"updated_at": "2015-10-27T00:26:49.6701Z",
"updated_at": "2015-10-27T00:26:49.6110Z",
"updated_at": "2015-10-27T00:26:49.3753Z",
"updated_at": "2015-10-27T00:26:49.3379Z",
"updated_at": "2015-10-27T00:26:49.1597Z",
"updated_at": "2015-10-28T08:36:22.4630Z",
"updated_at": "2015-10-27T00:26:44.2852Z",
"updated_at": "2015-10-27T00:26:44.2397Z",
"updated_at": "2015-10-27T00:26:44.2068Z",
"updated_at": "2015-10-27T00:26:44.1958Z",
"updated_at": "2015-10-27T00:26:44.1752Z",
"updated_at": "2015-10-27T00:26:44.1113Z",
"updated_at": "2015-10-27T00:26:43.9956Z",
"updated_at": "2015-10-27T00:26:43.9730Z",
"updated_at": "2015-10-28T08:36:22.9448Z",
"updated_at": "2015-10-27T00:26:43.8429Z",
"updated_at": "2015-10-27T00:26:43.8062Z",
"updated_at": "2015-10-27T00:26:43.7783Z",
"updated_at": "2015-10-27T00:26:43.7572Z",
"updated_at": "2015-10-27T00:26:43.7391Z",
"updated_at": "2015-10-27T00:26:43.6936Z",
"updated_at": "2015-10-27T00:26:43.6474Z",
"updated_at": "2015-10-28T08:38:53.8425Z",
"updated_at": "2015-10-28T08:39:46.0828Z",
"updated_at": "2015-10-27T00:26:43.5460Z",
"updated_at": "2015-10-27T00:26:43.5139Z",
"updated_at": "2015-10-27T00:26:43.4051Z",
"updated_at": "2015-10-27T00:26:43.3556Z",
"updated_at": "2015-10-27T00:26:43.3234Z",
"updated_at": "2015-10-27T00:26:43.3007Z",
"updated_at": "2015-10-28T08:36:55.8090Z",
"updated_at": "2015-10-28T08:38:58.1376Z",
"updated_at": "2015-10-27T00:26:43.1885Z",
"updated_at": "2015-10-27T00:26:43.1685Z",
"updated_at": "2015-10-27T00:26:43.1487Z",
"updated_at": "2015-10-27T00:26:43.0925Z",
"updated_at": "2015-10-27T00:26:43.0644Z",
"updated_at": "2015-10-27T00:26:43.0040Z",
"updated_at": "2015-10-27T00:26:42.9613Z",
"updated_at": "2015-10-27T00:26:42.9066Z",
"updated_at": "2015-10-27T00:26:42.7963Z",
jsonpp.py is:
#!/usr/bin/python
import sys
import json
from collections import OrderedDict
json.dump(json.load(sys.stdin, object_pairs_hook=OrderedDict), sys.stdout, indent=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment