Implement comprehensive stats tracking and terminal-based GUI
#1 opened on Oct 17, 2024
Repository metrics
- Stars
- (0 stars)
- PR merge metrics
- (PR metrics pending)
Description
To enhance monitoring capabilities of our stock-checking scraper, we need to implement a comprehensive statistics tracking system along with a terminal-based graphical user interface (GUI). This system will allow us to track and log the performance of the scraper in real-time, helping to identify issues and ensure efficient operations.
Comprehensive Stats Tracking System
Improve the current logging system for each supported platform. Track the following metrics for each.
Total scrapes attempted
Successful scrapes
Failed scrapes (including error messages)
Success rate (percentage)
Average response time
Last successful scrape count and time
Use a class (ScraperStats) to manage and calculate these metrics. Replace add_count in Scrapper.py with a robust solution.
Terminal-based GUI
Create a terminal-based interface using the rich library to display real-time statistics, including:
- Color-coded status indicators (green for success, red for failure).
- Live updating statistics for scrapes.
- Optional: Toggleable views for platform-wise or aggregate data.