secret-santa
is a Python application designed to simplify organizing Secret Santa events. It randomly assigns participants to each other while ensuring no one gets paired with their significant other. The app also facilitates sending customized messages via WhatsApp.
- Python
- Poetry (for package management)
- Selenium (for web automation)
-
Install Poetry: Follow the installation instructions for Poetry from here.
-
Clone the Repository:
git clone https://github.com/your-repo/secret-santa.git cd secret-santa
-
Install Dependencies:
poetry install
-
Activate the Poetry Shell:
poetry shell
-
Setup Participants:
- Copy
data.py.example
todata.py
. - Edit
data.py
with participant details, including couples and phone numbers.
- Copy
-
Customize Messages (Optional):
- Modify
generated_text
inmain.py
to customize the messages sent via WhatsApp.
- Modify
-
Navigate to the Script Directory:
cd secret-santa/secret-santa/
-
Run the Script:
python main.py
-
WhatsApp Setup:
- A browser window will open.
- Scan the WhatsApp QR code with your phone.
- Ensure all participant phone numbers are saved in your contacts.
-
Complete the Process:
- Wait for the script to send messages.
- Once done, close the browser.
- Ensure your device remains connected to the internet during the process.
- Review and test the script in a controlled environment before actual use.