Table of Contents
This project consistis in a web scraper that collects daily news about the COVID19 pandemic from the BBC Brazil website (https://www.bbc.com/portuguese), store them in a Postgres database and make useful information available through an API.
- Python
- Postgresql
- Docker
- Docker
sudo apt get docker
- Docker-compose
sudo apt get docker-compose
- Clone the repo
git clone https://github.com/brianamaral/covid-news.git
- Change de environment variables in the docker-compose.yml
- POSTGRES_USER=
- POSTGRES_PASSWORD=
- POSTGRES_DB=
- POSTGRES_ADDRES=
If you changed the variables above correctly, then you are good to go, just go to the docker folder and then run:
docker-compose up
- /all_articles: return all articles on the dabatase
- /last_article: return the last articles on the database by the date
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Brian Bomfim Amaral - Linkedin - brian.amaralt@gmail.com
Project Link: https://github.com/brianamaral/covid-news