def GetOpnd(ea, n):
    res = idaapi.ua_outop2(ea, n)

    if not res:
        return ""
    else:
        return idaapi.tag_remove(res)
Get operand of an instruction
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetOpnd