Skip to content

refactor: improve scraper Python code quality#3

Merged
AmirHkrg merged 1 commit intolaraXgram:masterfrom
ITheEqualizer:refactor/improve-scraper-python-code
Apr 11, 2026
Merged

refactor: improve scraper Python code quality#3
AmirHkrg merged 1 commit intolaraXgram:masterfrom
ITheEqualizer:refactor/improve-scraper-python-code

Conversation

@ITheEqualizer
Copy link
Copy Markdown
Contributor

@ITheEqualizer ITheEqualizer commented Apr 11, 2026

Replace all print() calls with proper logging module usage in both scraper.py and generator.py for better log level control and structured output in Docker containers.

Pre-compile regex patterns as module-level constants instead of recompiling on every function call. Remove dead code: unused _extract_return_type method, unused subtype_match variable, and unused current_section variable. Cache process_types/process_methods results in generate_all to avoid redundant processing passes.

Replace all print() calls with proper logging module usage in both
scraper.py and generator.py for better log level control and structured
output in Docker containers.

Pre-compile regex patterns as module-level constants instead of
recompiling on every function call. Remove dead code: unused
_extract_return_type method, unused subtype_match variable, and unused
current_section variable. Cache process_types/process_methods results
in generate_all to avoid redundant processing passes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@AmirHkrg
Copy link
Copy Markdown
Member

Thanks for the PR! Really appreciate your contribution 🫶

@AmirHkrg AmirHkrg merged commit 5662eb3 into laraXgram:master Apr 11, 2026
2 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.

2 participants