Skip to main content

ServiceLocator

Service locator for managing the services used by Crawlee.

All services are initialized to its default value lazily.

Index

Methods

__init__

  • __init__(): None
  • Returns None

get_configuration

get_event_manager

get_storage_client

set_configuration

  • set_configuration(*, configuration): None
  • Set the configuration.


    Parameters

    • optionalkeyword-onlyconfiguration: Configuration

      The configuration to set.

    Returns None

set_event_manager

  • set_event_manager(*, event_manager): None
  • Set the event manager.


    Parameters

    • optionalkeyword-onlyevent_manager: EventManager

      The event manager to set.

    Returns None

set_storage_client

  • set_storage_client(*, storage_client): None
  • Set the storage client.


    Parameters

    Returns None