acmpesuecc/Consoles_India_StockNotifier

Implement comprehensive stats tracking and terminal-based GUI

Aperta

#1 aperta il 17 ott 2024

 (9 commenti) (0 reazioni) (1 assegnatario)Python (3 fork)auto 404
Bounty: 100enhancementgood first issue

Metriche repository

Star
 (0 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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:

  1. Color-coded status indicators (green for success, red for failure).
  2. Live updating statistics for scrapes.
  3. Optional: Toggleable views for platform-wise or aggregate data.

Guida contributor