A collection of practical Python automation scripts built to eliminate repetitive tasks. This repository houses various standalone automation tools and specialized sub-projects.
This is a full-scale sub-project built with FastAPI. It provides a unified API to extract data from various Nepal Stock Market sources.
Architecture Insight: The scraper is built using a Modular Hybrid Design:
- API-based (
shareshansar): High-speed extraction using direct JSON endpoints. - Selenium-based (
merolagani): Handles websites requiring browser interaction; includes auto-blocking for notification popups. - Stealth-based (
nepsealpha): Usesundetected-chromedriverto bypass advanced bot detection for financial data. - Separation of Concerns:
views.pyhandles the API routes, whileutils.pyhandles data formatting (CSV/JSON), keeping the scraper engines clean.
Capabilities:
- Single Stock Lookup (Get dividends, announcements, BV, or EPS instantly).
- Bulk Processing (Upload a JSON mapping file to scrape the entire market).
- Format Export (Download results directly as CSV or JSON).
A utility to manage large directories by renaming multiple files using sequential or formatted naming conventions.
- Consistent structure for data logs.
- Prevents manual naming errors.
An automation script intended to generate leave requests and send them via mail automatically.
- Status: 🚧 Under Development.