Example of usage

from pbuster import PhantomBuster

pb = PhantomBuster()

pb.script.list()

pbuster.script.Script(req)

list(org_name='phantombuster')

Fetch all scripts (Phantoms)

Parameters:
  • org_name (str, default: 'phantombuster' ) –

    Organization name to filter scripts by. Default is "phantombuster".

Returns:
  • dict

    A dictionary containing all scripts for the specified organization.

get(script_id)

Fetch a specific script by ID

Parameters:
  • script_id (str) –

    The ID of the script to fetch.

Returns:
  • dict

    A dictionary containing the script details.

args(script_id)

Fetch the arguments of a specific script by ID

Parameters:
  • script_id (str) –

    The ID of the script to fetch arguments for.

Returns:
  • dict

    A dictionary containing the script's arguments.