Send fun, warm "Custom Prompted" messages with beautiful images to your loved ones via WhatsApp—automatically, every day.
- 📸 Fetch Beautiful Images: Random high-quality images from Unsplash
- 💬 Automated Messaging: Send scheduled messages via WhatsApp
- 📝 Comprehensive Logging: Track events and errors
- ⚙️ Full Customization: Personalize messages, timing, and images
- Python: Core application logic
- Unsplash API: For fetching beautiful images
- PyWhatKit: WhatsApp automation
- Schedule: Task scheduling
- Python 3.6+
- WhatsApp Web access
- Unsplash API key
You can either install the package from PyPI or clone the repository:
pip install promptly-whatsapp- Clone the repository:
git clone https://github.com/itsmeved24/Promptly.git
cd Promptly- Install dependencies:
pip install -r requirements.txt- Create a
.envfile:
PHONE_NUMBER=+911234567890
UNSPLASH_API_KEY=your_unsplash_api_key_here
- Run the application:
python main.py- Message Text: Edit message templates in
main.py - Image Categories: Modify keywords in
image_fetcher.py - Scheduling: Adjust timing with
schedule.every().day.at("HH:MM")inmain.py - Custom Images: Add personal images to
images/directory
.
├── promptly/ # Main package directory
│ ├── __init__.py # Package initialization
│ ├── image_fetcher.py # Image fetching module
│ └── main.py # Core application file
├── dist/ # Distribution files
├── .env # Environment variables
├── README.md # Documentation
├── requirements.txt # Dependencies
└── setup.py # Package configuration
The application creates detailed logs (image_fetcher.log) that include:
- Timestamps for each operation
- Success/failure status
- Image URLs and query terms
- Detailed error information
- Debug information
This project is licensed under the MIT License.