acmpesuecc/Consoles_India_StockNotifier

Implement comprehensive stats tracking and terminal-based GUI

Open

#1 opened on Oct 17, 2024

 (9 comments) (0 reactions) (1 assignee)Python (3 forks)auto 404
Bounty: 100enhancementgood first issue

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:

  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.

Contributor guide