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

Update generate_social_blocklists_asn.py #164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fabriziosalmi
Copy link

feat: πŸ›‘οΈ Improved ASN to RPZ generator πŸš€

  • ✨ Enhanced error handling and robustness.
  • πŸ”’ Added HTTP error handling and timeouts.
  • 🧹 Cleaned up network prefix processing.
  • πŸ“ˆ Enhanced readability and maintainability.
  • πŸ“Š Added validation and error messages.
  • πŸ“ Improved comments and clarity.
  • βœ… Added output directory creation.
  • βœ… Added ipaddress module usage for better validation.

Rationale:
This commit enhances the ASN to RPZ generator script to improve its robustness, security, and maintainability. It introduces better error handling using try-except blocks, adds HTTP error handling and timeouts, ensures network prefixes are properly processed using the ipaddress module, and adds informative messages. It also includes output directory creation and improved comments. 🍻

feat: πŸ›‘οΈ Improved ASN to RPZ generator πŸš€

- ✨ Enhanced error handling and robustness.
- πŸ”’ Added HTTP error handling and timeouts.
- 🧹 Cleaned up network prefix processing.
- πŸ“ˆ Enhanced readability and maintainability.
- πŸ“Š Added validation and error messages.
- πŸ“ Improved comments and clarity.
- βœ… Added output directory creation.
- βœ… Added ipaddress module usage for better validation.

Rationale:
This commit enhances the ASN to RPZ generator script to improve its robustness, security, and maintainability. It introduces better error handling using `try-except` blocks, adds HTTP error handling and timeouts, ensures network prefixes are properly processed using the `ipaddress` module, and adds informative messages. It also includes output directory creation and improved comments. 🍻
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