daft.expressions.UrlMethodAccessor.download
daft.expressions.UrlMethodAccessor.download#
- UrlMethodAccessor.download(max_worker_threads: int = 8) daft.expressions.UdfExpression [source]#
Treats each string as a URL, and downloads the bytes contents as a bytes column
- Parameters
max_worker_threads – The maximum number of threads to use for downloading URLs, defaults to 8
- Returns
a BYTES expression which is the bytes contents of the URL, or None if an error occured during download
- Return type
UdfExpression