acmpesuecc / Consoles_India_StockNotifier

0 stars 3 forks source link

Implement comprehensive stats tracking and terminal-based GUI #1

Open shri30yans opened 3 days ago

shri30yans commented 3 days ago

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.
bunsamosa-bot[bot] commented 3 days ago

Thank you for opening this issue! A Maintainer will review it soon!

Harshinigrandhi2005 commented 2 days ago

can i get this assigned @shri30yans

Ferrari2025 commented 2 days ago

may i get assigned to this issue?

shri30yans commented 2 days ago

!assign @Harshinigrandhi2005

shri30yans commented 2 days ago

!assign @Ferrari2025

bunsamosa-bot[bot] commented 2 days ago

Hey @shri30yans! The timer for the @Ferrari2025 to work on the issue has finished, deassign and assign a new contributor or extend the current timer. Contact maintainer leads if inactive @DedLad @polarhive @achyuthcodes30

Ferrari2025 commented 2 days ago

i have a few doubts can you please come to sem hall 2 , 3rd row?

shri30yans commented 2 days ago

Here. Let me know where you are.

shri30yans commented 1 day ago

@Ferrari2025 Any update on this?