O principal objetivo desse projeto é fazer raspagem em notícias sobre tecnologia. Noticias que são retidaras do blog da Trybe
1 - Clone o repositório
git clone git@github.com:Vitosoaresp/tech-news.git
2 - Crie ambiente virtual e instale as dependências
cd tech-news/
python3 -m venv .venv && source .venv/bin/activate
python3 -m pip install -r dev-requirements.txt
3 - Rode o banco de dados via docker
docker-compose up -d mongodb
Selecione uma das opções a seguir:
0 - Popular o banco com notícias;
1 - Buscar notícias por título;
2 - Buscar notícias por data;
3 - Buscar notícias por tag;
4 - Buscar notícias por categoria;
5 - Listar top 5 notícias;
6 - Listar top 5 categorias;
7 - Sair.
python3 tech_news/menu.py
Lembre-se de popular o banco primeiro.
tech-news/menu.py
tech-news/scraper.py
tech-news/analyzer/ratings.py
tech-news/analyzer/search_engine.py
tech-news/database.py
tests/
Dockerfile
docker-compose.yml
dev-requeriments.txt
requeriments.txt
setup.*
pyproject.toml