Skip to content

Extract

extract

extract_package(package, **kwargs)

Extract data from all resources in a datapackage based on their configured mode.

api

check_multipart_files(resource, **kwargs)

Download every file of an API resource.

The base URL in sources is combined with the file name of resource.path and of each one of resource.extrapaths.

extract_api(resource, **kwargs)

Request the resource source and save the response to resource.path.

command

check_cli_commands(resource, **kwargs)

Execute the command line commands defined for the resource.

run_cli_command(command, resource, **kwargs)

Execute a single command, logging the error without stopping the others.

email

email_connection(resource, **kwargs)

Connect to an e-mail server, search for the most recent e-mail matching the given criteria and save its attachments to the resource path.

extract_email(mailbox, resource, **kwargs)

Extract the most recent e-mail matching a subject and save its attachments to the given resource path.