Skip to content

feat: add FileDownloadCrawler for downloading and streaming files#2043

Merged
vdusek merged 2 commits into
apify:masterfrom
Mantisus:file-downloaw-crawler
Jul 20, 2026
Merged

feat: add FileDownloadCrawler for downloading and streaming files#2043
vdusek merged 2 commits into
apify:masterfrom
Mantisus:file-downloaw-crawler

Conversation

@Mantisus

@Mantisus Mantisus commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Adds FileDownloadCrawler with support for streaming the response body in the request handler.

Issues

Testing

  • Added tests for FileDownloadCrawler

@Mantisus Mantisus self-assigned this Jul 8, 2026
@Mantisus
Mantisus force-pushed the file-downloaw-crawler branch from 4669391 to db4ded0 Compare July 10, 2026 10:41
@Mantisus
Mantisus marked this pull request as ready for review July 10, 2026 10:48
@Mantisus
Mantisus requested review from Pijukatel and vdusek July 10, 2026 10:48

@Pijukatel Pijukatel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For large files, it would be great to have something like https://pypi.org/project/smart-open/ , but our storages lacks interface to support such chunked uploads

Comment thread docs/guides/http_crawlers.mdx

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise it looks great

Comment thread src/crawlee/crawlers/_file_download/_file_download_crawler.py
Comment thread docs/examples/code_examples/file_download_stream.py Outdated
Comment thread src/crawlee/crawlers/_file_download/_file_download_crawler.py Outdated

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. However, let's wait with merging for now so we can release one more patch version before we start merging changes for 1.9.0.

@vdusek vdusek changed the title feat: add FileDownloadCrawler feat: add FileDownloadCrawler for downloading and streaming files Jul 20, 2026
@vdusek
vdusek merged commit 90d550d into apify:master Jul 20, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a FileDownload crawler

4 participants