Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excavate - increase max redirects with max spider distance #965

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

TheTechromancer
Copy link
Collaborator

@TheTechromancer TheTechromancer commented Jan 6, 2024

This fixes a small bug in excavate where when web_spider_distance was greater than 5, URLs would erroneously be tagged as spider-danger because of max_redirects. If needed, max_redirects is now upscaled to match web_spider_distance. A log message has also been added that explains why the event is tagged as spider-danger.

Copy link

codecov bot commented Jan 6, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2cfbfdb) 92% compared to head (8abe778) 92%.

Files Patch % Lines
bbot/modules/internal/excavate.py 92% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             dev    #965   +/-   ##
=====================================
- Coverage     92%     92%   -0%     
=====================================
  Files        305     305           
  Lines      18835   18845   +10     
=====================================
+ Hits       17307   17314    +7     
- Misses      1528    1531    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheTechromancer TheTechromancer merged commit 3b1c2af into dev Jan 6, 2024
8 checks passed
@TheTechromancer TheTechromancer deleted the spider-tweak branch January 10, 2024 21:27
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.

2 participants