INNER CODE UNIT · Python

idx

Far-Se/tabame · plugins/api-client/main.py:243

            idx = int(tok[1:-1])
            if isinstance(cur, list) and 0 <= idx < len(cur):
                cur = cur[idx]
            else:
                return None
        else:
            if isinstance(cur, dict) and tok in cur:
                cur = cur[tok]
            else:
                return None
    return cur


def build_curl(entry):
    parts = [
        "curl",
        "-X",
        entry.get("method", "GET"),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…