A collection of practical Python automation scripts built to eliminate repetitive tasks and improve workflow efficiency.
This repository contains small, focused utilities designed for data preparation, file management, and process automation.
Each automation solves a real-world problem encountered during daily development and data workflows.
python-automation is an evolving repository where I build and maintain automation tools based on personal needs and real use cases.
The goal is simple:
- Reduce manual work
- Automate repetitive processes
- Create reusable utilities
- Learn by building practical automation systems
Automatically renames multiple files inside a directory using a sequential naming format.
Features
- Batch rename files
- Consistent naming structure
- Saves manual renaming time
Automation script intended to:
- Generate leave requests automatically
- Fill required details
- Send email notifications
Status: 🚧 Currently under development
Automation pipeline for collecting Nepal stock market historical price data.
Includes:
- Fetch price history from NEPSE Alpha
- Retrieve dead stock data from ShareSansar
- Convert JSON data into CSV format for analysis
- Utility scripts for structured data collection
Since ShareSansar uses protected requests, authentication tokens must be updated periodically.
-
Open: ShareSansar
-
Search for any stock.
-
Open Developer Tools → Application → Cookies.
-
Copy:
XSRF-TOKEN- ShareSansar session token
⚠️ Tokens expire regularly and must be refreshed.
Modify the script headers with updated values:
'x-csrf-token': 'YOUR_UPDATED_TOKEN',
'x-requested-with': 'XMLHttpRequest',- Search for a stock on ShareSansar.
- Scroll to Price History.
- Open Developer Tools → Network Tab.
- Locate the JSON fetch request.
- Right-click → Copy as cURL.
- Paste into:
https://curlconverter.com/
- Convert to Python.
- Copy cookies and headers into the script.
Done ✅
- Build practical automation tools
- Improve Python scripting skills
- Create reusable workflow utilities
- Document real automation solutions
Planned additions:
This repository is primarily for personal learning and experimentation, but suggestions and improvements are always welcome.
MIT License — free to use and modify.
If you find this repository useful, consider giving it a star!