Paul
08/01/2025, 12:29 AMkapa.ai
08/01/2025, 12:29 AMAIRBYTE_ENABLE_UNSAFE_CODE environment variable to true in your deployment configuration. This can be done via abctl or Helm charts. For example, in your `values.yaml`: yaml workload-launcher: extraEnv: - name: AIRBYTE_ENABLE_UNSAFE_CODE value: "true" connector-builder-server: extraEnv: - name: AIRBYTE_ENABLE_UNSAFE_CODE value: "true" [How to enable Custom Components](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/custom-components#how-to-enable-custom-components) ### 2. Implement Your Custom Component You need to create a Python class that implements the interface of the component you want to customize. For web scraping, you might implement a custom retriever or record transformation component that fetches the HTML and parses it (e.g., using BeautifulSoup). Example structure for a custom component: python from dataclasses import dataclass, InitVar from typing import Mapping, Any, List, Optional from airbyte_cdk.sources.declarative.requesters.retriever import Retriever @dataclass class MyHtmlScraper(Retriever): url: str parameters: InitVar[Mapping[str, Any]] def __post_init__(self, parameters: Mapping[str, Any]): pass def read_records(self, *args, **kwargs) -> List[Mapping[str, Any]]: # Fetch HTML, parse with BeautifulSoup, extract elements, return as records pass [Custom Components documentation](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/custom-components) ### 3. Reference Your Custom Component in the YAML In the Connector Builder UI, switch to the YAML editor and reference your custom component using its fully qualified class name: yaml retriever: type: "CustomRetriever" class_name: "my_connector_module.MyHtmlScraper" url: "https://example.com" [How to use Custom Components](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/custom-components#how-to-use-custom-components) ### 4. Build and Deploy - Place your Python class in the connector’s module. - Use the YAML editor in the Connector Builder UI to configure your connector. - Deploy and test your connector. ### Notes - You cannot configure custom components through the visual interface; you must use the YAML editor. - Custom Components allow you to implement any logic, including HTML parsing and element extraction, as long as you adhere to the required interface. - Be aware of the security implications, as enabling this feature allows execution of arbitrary code in your Airbyte environment. For more details and examples, see the official documentation on [Custom Components for the Connector Builder](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/custom-components) and [Advanced Topics: Custom Components](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/custom-components). If you need to see a full working example or have specific requirements for the HTML elements you want to extract, please provide more details!Paul
08/01/2025, 12:32 AMkapa.ai
08/01/2025, 12:32 AMkapa.ai
08/01/2025, 12:32 AMPaul
08/01/2025, 12:50 AMkapa.ai
08/01/2025, 12:50 AMkapa.ai
08/01/2025, 12:51 AMRecordSelector.$parameters.name. However, they do explain how the $parameters field works in Airbyte's config-based connector YAML files. The $parameters object allows you to pass parameters from a parent component to its subcomponents, which can then be referenced for string interpolation or configuration. For example, you can define a parameter in the $parameters object and use it within the component: yaml selector: $parameters: name: "example_name" extractor: field_path: [] In this example, name is set to "example_name" and can be referenced within the RecordSelector or its subcomponents using the interpolation syntax {{ parameters['name'] }} if needed. The documentation does not specify a required or special meaning for a name field under `RecordSelector.$parameters`; it is simply a user-defined key-value pair for parameterization purposes [Parameters](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/parameters). If you need to use the value elsewhere in your configuration, you can reference it like this: yaml some_field: "{{ parameters['name'] }}" If you are looking for a specific built-in meaning or required usage for RecordSelector.$parameters.name, the knowledge sources do not provide such information. It is a general-purpose parameterization mechanism.