This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Este script busca as notícias mais relevantes da semana no TabNews, | |
| enriquece os dados buscando o conteúdo completo de cada artigo de forma concorrente, | |
| e utiliza uma IA para formatar um resumo para ser postado no Discord. | |
| """ | |
| import subprocess | |
| import json | |
| import sys | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import requests | |
| import json | |
| from datetime import datetime, timedelta, timezone | |
| # --- CONFIGURAÇÕES --- | |
| # URL da API do TabNews através do proxy para evitar bloqueio do Cloudflare | |
| PROXY_URL = "https://corsproxy.io/?url=" | |
| # A estratégia 'relevant' é mais adequada para obter os posts com mais tabcoins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| GREEN='\033[0;32m' | |
| NC='\033[0m' # No Color | |
| echo -e "${GREEN}Iniciando a instalação do Lobo Guará e suas dependências...${NC}" | |
| echo -e "${GREEN}Passo 1: Atualizando o sistema...${NC}" | |
| sudo apt update && sudo apt upgrade -y |