Skip to content

Enhance scraper functionality and improve configuration#7

Merged
lawzava merged 2 commits intomainfrom
feat/upgrade
Dec 1, 2025
Merged

Enhance scraper functionality and improve configuration#7
lawzava merged 2 commits intomainfrom
feat/upgrade

Conversation

@lawzava
Copy link
Copy Markdown
Owner

@lawzava lawzava commented Dec 1, 2025

  • Updated the scraping logic to support context-based operations, allowing for better control over timeouts and cancellations.
  • Introduced a new method for scraping with context, improving error handling and response management.
  • Enhanced the configuration structure to include rate limiting, parallelism, and retry mechanisms for failed requests.
  • Updated dependencies in the Go module and GitHub workflows for better compatibility and performance.
  • Added comprehensive tests for email validation and domain preparation, ensuring robustness in email scraping functionality.

- Updated the scraping logic to support context-based operations, allowing for better control over timeouts and cancellations.
- Introduced a new method for scraping with context, improving error handling and response management.
- Enhanced the configuration structure to include rate limiting, parallelism, and retry mechanisms for failed requests.
- Updated dependencies in the Go module and GitHub workflows for better compatibility and performance.
- Added comprehensive tests for email validation and domain preparation, ensuring robustness in email scraping functionality.
@lawzava lawzava self-assigned this Dec 1, 2025
- Updated test cases in domain_test.go and email_test.go to use more descriptive variable names for test cases.
- Added linter directives to suppress warnings for test packages and function lengths.
- Enhanced the scraper configuration in scraper.go by introducing new constants for user agent and random delay divisor, and refactored rate limiting and retry logic for better clarity and maintainability.
@lawzava lawzava merged commit 262a413 into main Dec 1, 2025
2 of 4 checks passed
@lawzava lawzava deleted the feat/upgrade branch December 1, 2025 08:29
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.

1 participant