

def shares(url, fb=''):
    'Return the number of times a given URL was liked in Facebook.'
    if (not fb):

        def gfb(url):
            global fb
            return fb(url)
        try:
            fb = json.loads(gfb(url))
        except:
            return 'Error'
    else:
        try:
            fb = json.loads(fb)
        except:
            return 'Error'
    if ('data' in fb):
        return walkdict(fb['data'][0], 'share_count')
    else:
        return 'Error'

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