Skip to content

Mithcodes007/API-Scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•’ API Scheduler

A lightweight Python-based scheduler to automate and log API requests at specific timestamps. Perfect for running time-based API calls (like heartbeat checks, data syncs, or webhook testing).

๐Ÿš€ Features

Schedule multiple API calls at custom timestamps

Supports GET and POST requests

Optional dry-run mode (test schedules without execution)

Logs every run, skip, and error with timestamps

Simple CLI interface

โš™๏ธ Usage

Run the script python api_scheduler.py "12:00:05,12:00:10,12:00:15"

This runs the scheduler for the specified times (24-hour format).

Dry run (no actual API calls) python api_scheduler.py "12:00:05,12:00:10" --dry-run

Example log output 2025-10-03 12:00:05: Executing API request... 2025-10-03 12:00:10: Skipping past timestamp 2025-10-03 12:00:05

๐Ÿง  How It Works

Reads timestamps from command-line arguments

Waits until each scheduled time

Sends API requests (or simulates in dry-run)

Logs results to the console and file

๐Ÿ“ Project Structure

โ”œโ”€โ”€ api_scheduler.py # Main script

โ”œโ”€โ”€ requirements.txt # Dependencies (if any)

โ””โ”€โ”€ README.md # Project documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages