Protected
apifyProtected
callerProtected
datasetProtected
datasetRetrieves the dataset items from the Apify platform and applies the datasetMappingFunction to each item to create an array of Document instances.
An array of Document instances.
Static
fromCreate an ApifyDatasetLoader by calling an Actor on the Apify platform and waiting for its results to be ready.
The ID or name of the Actor on the Apify platform.
The input object of the Actor that you're trying to run.
Options specifying settings for the Actor run.
Optional
callOptions?: ActorCallOptionsOptional
clientOptions?: ApifyClientOptionsA function that takes a single object (an Apify dataset item) and converts it to an instance of the Document class.
An instance of ApifyDatasetLoader
with the results from the Actor run.
Static
fromCreate an ApifyDatasetLoader by calling a saved Actor task on the Apify platform and waiting for its results to be ready.
The ID or name of the task on the Apify platform.
The input object of the task that you're trying to run. Overrides the task's saved input.
Options specifying settings for the task run.
Optional
callOptions?: TaskCallOptionsOptions specifying settings for the task run.
Optional
clientOptions?: ApifyClientOptionsOptions specifying settings for the Apify client.
A function that takes a single object (an Apify dataset item) and converts it to an instance of the Document class.
An instance of ApifyDatasetLoader
with the results from the task's run.
A class that extends the BaseDocumentLoader and implements the DocumentLoader interface. It represents a document loader that loads documents from an Apify dataset.
Example