{"id":19090327,"url":"https://github.com/adalbertobrant/consultaunimed","last_synced_at":"2026-06-18T03:33:46.344Z","repository":{"id":97489333,"uuid":"132132034","full_name":"adalbertobrant/consultaUnimed","owner":"adalbertobrant","description":"Consulta para Web","archived":false,"fork":false,"pushed_at":"2018-10-31T10:36:49.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-12T03:32:01.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adalbertobrant.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-04T11:33:27.000Z","updated_at":"2022-02-17T18:44:33.000Z","dependencies_parsed_at":"2023-04-20T15:08:41.225Z","dependency_job_id":null,"html_url":"https://github.com/adalbertobrant/consultaUnimed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adalbertobrant/consultaUnimed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adalbertobrant%2FconsultaUnimed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adalbertobrant%2FconsultaUnimed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adalbertobrant%2FconsultaUnimed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adalbertobrant%2FconsultaUnimed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adalbertobrant","download_url":"https://codeload.github.com/adalbertobrant/consultaUnimed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adalbertobrant%2FconsultaUnimed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34475375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T03:04:14.221Z","updated_at":"2026-06-18T03:33:46.328Z","avatar_url":"https://github.com/adalbertobrant.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consulta Unimed\nConsulta de autorização de procedimentos de maneira automatizada.\n\n## Instruções:\n1. Crie uma conta no Twitter e cadastre uma nova [API](https://apps.twitter.com/)\n1. Confira nas permissões se o acesso é read and write\n1. Crie os tokens necessários\n1. Crie um arquivo keys.py que tenha a seguinte estrutura com os dados obtidos da nova API\n \n```shell\n#!/usr/local/bin/python\nkeys = dict(consumer_key = 'VALOR', consumer_secret = 'VALOR', access_token = 'VALOR', access_token_secret = 'VALOR')\n```\n\n1. Edite a linha 22 do arquivo unimed.py, inserindo o endereço de onde está o formulário inicial de entrada\n1. Caso deseje, você pode automatizar a tarefa de consulta, gerando um script no shell e colocando o mesmo para rodar via cron ou caso o seu sistema utilize o systemd, no nosso caso utilizamos o systemd devido a versão e distribuição do S.O utilizado.\n\n## Exemplo de configuração do systemd para consulta a cada 6 horas\n1. Crie um arquivo script para a shell e dê autoridade de execução ao mesmo\n\n```shell\n#!/bin/sh\npython2 /home/nome_do_usuario/script.sh\n```\n\n1. Crie um arquivo chamado **unimed.timer** no diretório system do systemd\n```\n[Unit]\nDescription=Roda o programa a cada 6horas\n\n[Timer]\nOnBootSec=30min\nOnUnitActiveSec=6h\nUnit=unimed.service\n\n[Install]\nWantedBy=multi-user.target\n```\n\n1. Crie um arquivo chamado **unimed.service** no diretório system do systemd\u003c/p\u003e\n```\n[Unit]\nDescription=Consultar a Unimed\n\n[Service]\nExecStart=/home/nome_do_usuario/script.sh\n```\n\n1. Atualize o daemon\n```sudo systemctl daemon-reload```\n\n1. Inicie o serviço\n```sudo systemctl start unimed.service```\n   \n1. Verifique o status do timer\n```systemctl list-timers --all```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadalbertobrant%2Fconsultaunimed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadalbertobrant%2Fconsultaunimed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadalbertobrant%2Fconsultaunimed/lists"}