Skip to main content

Send custom prompted messages with beautiful images via WhatsApp automatically

Project description

Promptly 🌅

Send fun, warm "Custom Prompted" messages with beautiful images to your loved ones via WhatsApp—automatically, every day.

✨ Features

  • 📸 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

🛠️ Tech Stack

  • Python: Core application logic
  • Unsplash API: For fetching beautiful images
  • PyWhatKit: WhatsApp automation
  • Schedule: Task scheduling

🚀 Getting Started

Prerequisites

  • Python 3.6+
  • WhatsApp Web access
  • Unsplash API key

Installation

  1. Clone the repository:
git clone https://github.com/itsmeved24/Promptly.git
cd Promptly
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file:
PHONE_NUMBER=+911234567890
UNSPLASH_API_KEY=your_unsplash_api_key_here
  1. Run the application:
python main.py

⚙️ Customization

  • 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") in main.py
  • Custom Images: Add personal images to images/ directory

📋 Project Structure

.
├── images/               # Directory for storing images
├── .env                  # Environment variables
├── image_fetcher.py      # Image fetching module
├── main.py               # Core application file
├── image_fetcher.log     # Logs for debugging
├── requirements.txt      # Dependencies
└── README.md             # This file

📊 Logging

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

Made with ❤️ by Vedank

📜 License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptly_whatsapp-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptly_whatsapp-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file promptly_whatsapp-0.1.0.tar.gz.

File metadata

  • Download URL: promptly_whatsapp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for promptly_whatsapp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bafb13ac9c5b94b7aa0c48c6422dae38e5ae4ff2e2b0a4971a47c41672dfa264
MD5 909b3e3ae16e85ad035233b2c54f971e
BLAKE2b-256 b0846569b173dbe250c0d679c3315b4c82e968547c4cf7b3adb1ff76d2b4a023

See more details on using hashes here.

File details

Details for the file promptly_whatsapp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for promptly_whatsapp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 657525ccd14bb78f3f77c1969b3b34465501ed27af68300e95f4d1feb84bd339
MD5 609b7469f25f744199a41f852c99b36c
BLAKE2b-256 f4db03a3b6764fc38ec86193c84671e209649a833d424998e1e5311768a43e72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page