How rpakishore/ak_requests works
Main Components
a) Core Components:
• Request Handler (src/ak_requests/request.py)
• Adapter System (src/ak_requests/adapters.py)
• BeautifulSoup Integration (src/ak_requests/beautifulsoup.py)
• Logging System (src/ak_requests/logger.py)
• Utility Functions (src/ak_requests/utils.py)
b) External Dependencies:
• Python Requests Library
• BeautifulSoup4
• Authentication Systems (Basic & OAuth2)
┌─ Client Application Layer ─────────────────────────┐
• RequestsSession Interface │
• ┬──────────────────────────────┤
• Core Features │ Extension Features │
• HTTP Methods │ - BeautifulSoup Parser │
• Bulk Requests │ - File Downloads │
• Session Mgmt │ - Video Downloads │
• ┴──────────────────────────────┤
• Safety Features │
• Rate Limiting │
• Retry Mechanism │
• Anti-Bot Detection Avoidance │
• ┤
• External Services │
• HTTP/HTTPS Endpoints │
• Authentication Services │
• File Servers │
• ┘
Key Relationships to Highlight
a) Internal Relationships:
• RequestsSession class as the main interface
• Adapter system's interaction with the core request handler
• Logger's integration across all components
• Utility functions supporting various components
b) External Relationships:
• Integration with the requests library
• Authentication systems connections
• File system interactions for downloads
• External API endpoints
Additional Notes
• Notes for important configuration options
• Flow of both successful and error scenarios
• Where logging occurs throughout the system