Tabnews Alert is a Python-based project that automatically fetches data from the Tabnews API, filters posts titles based on specific keywords, and sends an email alert with the posts. The main purpose of this project is to automate the process of monitoring Tabnews for specific content and alerting the user when such content is published.
- Python: The main programming language used for this project.
- pip: A package installer for Python, used to manage project dependencies.
- requests: A Python library for making HTTP requests.
- smtplib: A Python library for sending emails using the Simple Mail Transfer Protocol (SMTP).
- dotenv: A Python library for handling environment variables.
During the development of this project, I learned how to interact with APIs using the requests library, how to send emails using smtplib, and how to manage environment variables using dotenv. I also gained experience in filtering and processing data in Python.
- Clone the repository to your local machine.
- Install the required dependencies using pip:
pip install -r requirements.txt
. - Set up your environment variables in a
.env
file. You will need to specify the following variables:FROM
,PASSWORD
, andTO
. - Run the main script:
python src/app.py
.