Repository navigation
Fix: Local HTML Files crawling bug - #1073
Closed
saipavanmeruga7797 wants to merge 1 commit into
Closed
saipavanmeruga7797 wants to merge 1 commit into
saipavanmeruga7797 wants to merge 1 commit into
Conversation
…here it cannot be associated with a value'
|
Ran into the same bug here—debugging points to the same root cause. Since this PR already covers it, I’ll skip a duplicate. +1 on the fix! The following code exhibits the reported issue |
|
@unclecode Can we merge this? I think this functionality is necessary. |
Collaborator
|
@saipavanmeruga7797 Thanks for raising the PR. We'll review this in our upcoming release. Cc: @scris @sandy1890 |
|
Will this still be taken into consideration? Thanks. |
Owner
|
Thanks for tracking this down, @saipavanmeruga7797! The captured_console initialization issue has been fixed on the develop branch. Closing this one out, but appreciate you digging into the root cause and linking it to #1072 — you'll be credited in CONTRIBUTORS.md. |
unclecode
added a commit
that referenced
this pull request
Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR will fix the Issue Fixes #1072 due to which the users are not able to scrape a local html files.
List of files changed and why
async_crawler_strategy.py -- Because inside the crawl() function on line number 421, there is elif condition on 448 which deals with file:// path url and captured_console variable is reached only when the capture_console_messages is true in the config. However, the capture_console_messages variable is False by default. Due to which the captured_console variable is never reached (unless the sets the capture_console_messages to True). To solve this issue I initialized captured_console = [] on line 443, similar to other functions where captured_console is initialized at the start of function.
How Has This Been Tested?
Once i applied the fix i tried to test the change by scraping 50-60 different local HTML files using the file:// path url.
Checklist: