def fb_like(account_name, password, _id, uid): # uid: 原贴用户id operation = Operation(account_name, password) #try: operation.like(uid, _id) mark = True # except: # mark = False return mark
def fb_like(account_name, password, _id, uid): # uid: 原贴用户id operation = Operation(account_name, password) print 'uid', uid #try: _id = _id.split('_')[1] print 'fid', _id operation.like(uid, _id) mark = True # except: # mark = False return mark