Skip to main content

DatasetClient

Sub-client for manipulating a single dataset.

Index

Methods

delete

  • delete(): None

download_items

  • download_items(*, item_format, offset, limit, desc, clean, bom, delimiter, fields, omit, unwind, skip_empty, skip_header_row, skip_hidden, xml_root, xml_row, flatten): bytes
  • Get the items in the dataset as raw bytes.

    Deprecated: this function is a deprecated alias of get_items_as_bytes. It will be removed in a future version.

    https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items


    Parameters

    • keyword-onlyitem_format: str = 'json'
    • keyword-onlyoffset: int | None = None
    • keyword-onlylimit: int | None = None
    • keyword-onlydesc: bool | None = None
    • keyword-onlyclean: bool | None = None
    • keyword-onlybom: bool | None = None
    • keyword-onlydelimiter: str | None = None
    • keyword-onlyfields: list[str] | None = None
    • keyword-onlyomit: list[str] | None = None
    • keyword-onlyunwind: str | list[str] | None = None
    • keyword-onlyskip_empty: bool | None = None
    • keyword-onlyskip_header_row: bool | None = None
    • keyword-onlyskip_hidden: bool | None = None
    • keyword-onlyxml_root: str | None = None
    • keyword-onlyxml_row: str | None = None
    • keyword-onlyflatten: list[str] | None = None

    Returns bytes

get

  • get(): dict | None

get_items_as_bytes

  • get_items_as_bytes(*, item_format, offset, limit, desc, clean, bom, delimiter, fields, omit, unwind, skip_empty, skip_header_row, skip_hidden, xml_root, xml_row, flatten): bytes

  • Parameters

    • keyword-onlyitem_format: str = 'json'
    • keyword-onlyoffset: int | None = None
    • keyword-onlylimit: int | None = None
    • keyword-onlydesc: bool | None = None
    • keyword-onlyclean: bool | None = None
    • keyword-onlybom: bool | None = None
    • keyword-onlydelimiter: str | None = None
    • keyword-onlyfields: list[str] | None = None
    • keyword-onlyomit: list[str] | None = None
    • keyword-onlyunwind: str | list[str] | None = None
    • keyword-onlyskip_empty: bool | None = None
    • keyword-onlyskip_header_row: bool | None = None
    • keyword-onlyskip_hidden: bool | None = None
    • keyword-onlyxml_root: str | None = None
    • keyword-onlyxml_row: str | None = None
    • keyword-onlyflatten: list[str] | None = None

    Returns bytes

iterate_items

  • iterate_items(*, offset, limit, clean, desc, fields, omit, unwind, skip_empty, skip_hidden): Iterator[dict]

  • Parameters

    • keyword-onlyoffset: int = 0
    • keyword-onlylimit: int | None = None
    • keyword-onlyclean: bool | None = None
    • keyword-onlydesc: bool | None = None
    • keyword-onlyfields: list[str] | None = None
    • keyword-onlyomit: list[str] | None = None
    • keyword-onlyunwind: str | list[str] | None = None
    • keyword-onlyskip_empty: bool | None = None
    • keyword-onlyskip_hidden: bool | None = None

    Returns Iterator[dict]

list_items

  • list_items(*, offset, limit, clean, desc, fields, omit, unwind, skip_empty, skip_hidden, flatten, view): ListPage

  • Parameters

    • keyword-onlyoffset: int | None = None
    • keyword-onlylimit: int | None = None
    • keyword-onlyclean: bool | None = None
    • keyword-onlydesc: bool | None = None
    • keyword-onlyfields: list[str] | None = None
    • keyword-onlyomit: list[str] | None = None
    • keyword-onlyunwind: str | list[str] | None = None
    • keyword-onlyskip_empty: bool | None = None
    • keyword-onlyskip_hidden: bool | None = None
    • keyword-onlyflatten: list[str] | None = None
    • keyword-onlyview: str | None = None

    Returns ListPage

push_items

  • push_items(items): None

stream_items

  • stream_items(*, item_format, offset, limit, desc, clean, bom, delimiter, fields, omit, unwind, skip_empty, skip_header_row, skip_hidden, xml_root, xml_row): Iterator[httpx.Response]

  • Parameters

    • keyword-onlyitem_format: str = 'json'
    • keyword-onlyoffset: int | None = None
    • keyword-onlylimit: int | None = None
    • keyword-onlydesc: bool | None = None
    • keyword-onlyclean: bool | None = None
    • keyword-onlybom: bool | None = None
    • keyword-onlydelimiter: str | None = None
    • keyword-onlyfields: list[str] | None = None
    • keyword-onlyomit: list[str] | None = None
    • keyword-onlyunwind: str | list[str] | None = None
    • keyword-onlyskip_empty: bool | None = None
    • keyword-onlyskip_header_row: bool | None = None
    • keyword-onlyskip_hidden: bool | None = None
    • keyword-onlyxml_root: str | None = None
    • keyword-onlyxml_row: str | None = None

    Returns Iterator[httpx.Response]

update

  • update(*, name): dict