{"id":18933138,"url":"https://github.com/gacheiro/uri-com-cuscuz","last_synced_at":"2025-04-15T16:34:11.943Z","repository":{"id":194604766,"uuid":"193897683","full_name":"gacheiro/uri-com-cuscuz","owner":"gacheiro","description":"Um app para monitorar as soluções dos alunos no URI Online Judge","archived":true,"fork":false,"pushed_at":"2020-12-29T13:14:07.000Z","size":122,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-20T23:43:47.928Z","etag":null,"topics":["flask","hacktoberfest","uri-online-judge","web-scraping"],"latest_commit_sha":null,"homepage":"https://uricomcuscuz.herokuapp.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gacheiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-06-26T12:13:14.000Z","updated_at":"2024-09-03T06:31:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"8417bdc4-c075-45bd-829e-3213752b2433","html_url":"https://github.com/gacheiro/uri-com-cuscuz","commit_stats":null,"previous_names":["gacheiro/uri-com-cuscuz"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacheiro%2Furi-com-cuscuz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacheiro%2Furi-com-cuscuz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacheiro%2Furi-com-cuscuz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gacheiro%2Furi-com-cuscuz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gacheiro","download_url":"https://codeload.github.com/gacheiro/uri-com-cuscuz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249108812,"owners_count":21214067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","hacktoberfest","uri-online-judge","web-scraping"],"created_at":"2024-11-08T11:51:42.575Z","updated_at":"2025-04-15T16:34:11.396Z","avatar_url":"https://github.com/gacheiro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub](https://img.shields.io/github/license/thiagojobson/uri-com-cuscuz)\n\n# URI Online Judge... com cuscuz\n\nUm feed de atividades dos alunos da UERN no URI Online Judge com Flask e web scraping.\n\n## Instalação\n\nÉ preciso ter qualquer versão do python igual ou superior ao 3.6.\nClone este repositório na sua máquina e crie um **ambiente virtual** para instalar o app localmente:\n\n```bash\ngit clone https://github.com/thiagojobson/uri-com-cuscuz\ncd uri-com-cuscuz\n\n# Linux\npython3.6 -m venv venv\n# ou (caso tenha o virtualenv instalado)\nvirtualenv --python=/usr/bin/python3.6 venv\n\n# Windows\npy -m venv venv\n```\n\nAtive o ambiente virtual e instale o app e as dependências:\n\n```bash\n# Linux\nsource venv/bin/activate\n\n# Windows\nvenv\\Scripts\\activate.bat\n\n# Instalar o app e as dependências\npython -m pip install --upgrade pip\npip install -e .\n```\n\nPara o app funcionar, é necessário definir algumas variáveis de ambiente\n(adicione as seguintes linhas a um arquivo com nome `.env`):\n\n```\nFLASK_APP=uricomcuscuz\nFLASK_ENV=development\nAPP_SETTINGS=config.DevelopmentConfig\nDATABASE_URL=sqlite:///db.sqlite3\nUNIVERSITY=UERN\nUNIVERSITY_TOTAL_PAGES=1\n```\n\nEm seguida rode os comando para criar o banco de dados, testar o app para ver se está tudo funcionando e\natualizar o banco de dados com os dados do URI Online Judge:\n\n```bash\n# Criar as tabelas do banco\nflask db upgrade\n\n# Testes\npytest uricomcuscuz\n\n# Atualizar o banco de dados\nflask uri update\n\n# Visualizar as estatísticas do site\nflask uri stats\n\n# Rodar o app\nflask run\n```\n\nDepois de rodar o app, vá até a url `localhost:5000` no navegador para acessa-lo.\n\nPor padrão, o crawler so irá indexar a primeira página da universiade (`?page=1`). Para definir o número de páginas\nadicione `UNIVERSITY_TOTAL_PAGES=n` com `n` igual à paginação máxima ao arquivo `.env`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgacheiro%2Furi-com-cuscuz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgacheiro%2Furi-com-cuscuz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgacheiro%2Furi-com-cuscuz/lists"}