techgaun / github-dorks

Find leaked secrets via github search
Apache License 2.0
2.82k stars 591 forks source link

Update github-dork.py #60

Open Charlesnorris509 opened 3 weeks ago

Charlesnorris509 commented 3 weeks ago

Summary of Modifications on Pull Request Authentication Update: Replaced username/password authentication with token-based authentication for improved security. Rate-Limit Handling: Added a get_rate_limit function to dynamically check and handle GitHub API rate limits. Error Handling Improvements: Enhanced error handling, especially for rate limits and HTTP errors. Logging: Replaced print statements with Python's logging module for structured and configurable logging. Function Refactoring: Extracted a perform_search helper function for modular code and enhanced readability.