This project generates and sends a daily email containing a brief weather forecast and relevant news updates. It uses various APIs to gather information and Claude AI to generate a concise, human-friendly email summary.
- Retrieves current weather information based on the user's location
- Fetches frontpage of newspapers
- Gathers news on user-specified topics of interest
- Fetches crypto prices of specified cryptocurrencies
- Uses Claude AI to generate a brief, personalized email summary
- Sends the email summary to the specified recipient
- Python 3.7+
- Required Python packages (install via
pip install -r requirements.txt
):- anthropic
- pytrends
- pytz
- requests
- python-dotenv
- Clone this repository
- Install the required packages:
pip install -r requirements.txt
- Set up a
.env
file in the project root with the following variables:
ANTHROPIC_API_KEY=your_anthropic_api_key
SERPER_API_KEY=your_serper_api_key
SENDER_EMAIL=your_sender_email
RECEIVER_EMAIL=your_receiver_email
SMTP_PASSWORD=your_smtp_password
SMTP_SERVER=your_smtp_server
SMTP_PORT=your_smtp_port
USER_LOCATION=your_location
Run the script daily (e.g., via a cron job) using:
python main.py