This is a project from my python bootcamp where I access news about a particular topic and send myself by email.
As a data source I work with newsapi.org. The focus of the lectures was on learning how to render content from webpage by making an
api requests
- Make sure you have the latest Python version. I worked with 3.12.
- Open Project:
cd myproject
- Install venv:
python3 -m venv venv
- Run venv:
source venv/bin/activate
- Install the requirements
pip freeze > requirements.txt
- Get your API key and store it in a variable
- Set up your email function, store credentials in hidden file
- You will need
smtplib
for sending emails and email for constructing email messages. - Enjoy reading!
Go to my teacher Ardit Sulce from my online Python bootcamp on Udemy