Skip to content

feat: add FileDownloadCrawler#2043

Open
Mantisus wants to merge 2 commits into
apify:masterfrom
Mantisus:file-downloaw-crawler
Open

feat: add FileDownloadCrawler#2043
Mantisus wants to merge 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.

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