Python API multiple unnamed create_dataset
On APIFY SDK there is no method for
creating-dataset
multiple dataset or (there is ?)
reference: https://docs.apify.com/sdk/python/reference/class/Dataset#open
API: https://docs.apify.com/api/v2#/reference/datasets/dataset-collection/create-dataset
There is DatasetClient.open(*, id, name, force_cloud, config)
ID of the dataset to be opened. If neither id nor name are provided, the method returns the default dataset associated with the actor run. If the dataset with the given ID does not exist, it raises an error.
... data stored under unnamed dataset follows data retention period.
What if we want to create UNNAMED dataset (using Python SDK) with different ID from default-ID, or creating multiple UNNAMED dataset ? Then the Actor can output different results to different multiple datasets.Dataset | API | SDK for Python | Apify Documentation
The
Dataset
class represents a store for structured data where each object stored has the same attributes.
You can imagine it as a table, where each object is a row and its attributes are columns.
Dataset is an append-only storage - you can only add new records to it but you cannot modify or remove existing records.
Typically it is used to st...3 Replies
@Vlada Dusek can you please help
multiple-amethyst•15mo ago
I can do it
@Saurav Jain sorry, I found it! 😓 😅 https://docs.apify.com/api/client/python/reference/class/DatasetCollectionClientAsync#get_or_create
DatasetCollectionClientAsync | API | API client for Python | Apify ...
Async sub-client for manipulating datasets.