Skip to content

Vitosoaresp/tech-news

Repository files navigation

Tech News

O principal objetivo desse projeto é fazer raspagem em notícias sobre tecnologia. Noticias que são retidaras do blog da Trybe

image

Tecnologias

Desenvolvindo usando: Python, Docker, MongoDB, Pymongo

Python Docker MongoDB

Como rodar o projeto

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

Analyzer Menu

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.

image

python3 tech_news/menu.py

Lembre-se de popular o banco primeiro.

Arquivos desenvolvidos por mim

   tech-news/menu.py
   tech-news/scraper.py
   tech-news/analyzer/ratings.py
   tech-news/analyzer/search_engine.py

Arquivos desenvolvidos pela trybe

   tech-news/database.py
   tests/
   Dockerfile
   docker-compose.yml
   dev-requeriments.txt
   requeriments.txt
   setup.*
   pyproject.toml