

def plusses(url):
    'Return the number of times the given URL was plussed in Google+'
    api = 'https://clients6.google.com/rpc'
    jobj = ('{\n    "method":"pos.plusones.get",\n    "id":"p",\n    "params":{\n        "nolog":true,\n        "id":"%s",\n        "source":"widget",\n        "userId":"@viewer",\n        "groupId":"@self"\n        },\n    "jsonrpc":"2.0",\n    "key":"p",\n    "apiVersion":"v1"\n  }' % url)
    respobj = requests.post(api, jobj)
    adict = respobj.json()
    return walkdict(adict, 'count')

dataset/ETHPy150Open miklevin/pipulate/common.py plusses/original