#!/usr/bin/env python

import sys import requests import json

if(len(sys.argv) == 2): r = requests.get(sys.argv[1], headers={"Accept": "application/activity+json"})

print(r.status_code)

try: print(json.dumps(r.json(), indent=2)) except: print(r.status_code) for header in r.headers.keys(): print("{}: {}".format(header, r.headers[header])) print(r.text)

sneaky