Criando um Bot com PYAUTOGUI e utilizando o Flask para Interface para Usuário

Overview

Criando um Bot com PYAUTOGUI e utilizando o Flask para Interface para Usuário

O pyautogui foi escolhido pela possibilidade de fazer a identificação dos locais onde o bot irá dar os clicks através das imagens (pasta static/img_movidesk ou static/img_vacina)

NextLevelWeek

Objetivo

O objetivo do projeto foi testar a tecnologia do pyautogui e o Flask, e para ter uma utilidade foi feito através da Vacina Cuiabá, onde é um site aberto ao público e todos podem entender como funciona. Também foi implementado uma funcionalidade mais útil e complicada, que é a Geração de PDF's de chamados (Tickets) do Sistema Movidesk.

Consultar Vacina Cuiabá

Este bot vai até a parte de consulta o CPF do Vacina Cuiabá, preenchendo o CPF Informado.

Gerar PDF's do MoviDesk

Esta bot utiliza uma lista de até 20 tickets já cadastrado no sistema Movidesk e informado na tela, separados através de "," (vírgula) ou enter, é necessário também o local indicado pelo usuário na sua máquina para salvar os PDF's e também se deseja que a opção do histórico de alteração esteja marcada. Com isso ele gera os PDF's na pasta selecionada, caso todos os requisitos sejam cumpridos.

Vídeo da Utilização no Youtube

IMAGE ALT TEXT HERE

Requisitos

Para o sistema funcionar, é necessário que:

  • O usuário esteja logado no Movidesk
  • Os Tickets existam
  • A impressora no browser esteja configurada para Gerar PDF (Botão será Salvar na impressão)

Tecnologias

As tecnologias utilizadas foram o pyautogui e o Flask, sendo que para o pyautogui realizar o reconhecimento das imagens foi necessário instalar o Pillow e o opencv-python.

Instalação

Para realizar a instalação é necessário instalar todas as dependências do projeto, pode utilizar o arquivo requirements.txt com o comando pip install -r requirements.txt

You might also like...
flask-reactize is a boostrap to serve any React JS application via a Python back-end, using Flask as web framework.

flask-reactize Purpose Developing a ReactJS application requires to use nodejs as back end server. What if you want to consume external APIs: how are

Pf-flask-rest-com - Flask REST API Common Implementation by Problem Fighter Library

In the name of God, the Most Gracious, the Most Merciful. PF-Flask-Rest-Com Docu

Open-source Flask Sample built on top of flask-dance library
Open-source Flask Sample built on top of flask-dance library

Open-source Flask Sample built on top of flask-dance library. The project implements the social login for Github and Twitter - Originally coded by TestDriven.IO.

Flask-redmail - Email sending for Flask

Flask Red Mail: Email Sending for Flask Flask extension for Red Mail What is it?

Flask Sitemapper is a small Python 3 package that generates XML sitemaps for Flask applications.

Flask Sitemapper Flask Sitemapper is a small Python 3 package that generates XML sitemaps for Flask applications. This allows you to create a nice and

Flask-template - A simple template for make an flask api

flask-template By GaGoU :3 a simple template for make an flask api notes: you ca

Telegram bot + Flask API ( Make Introduction pages )

Introduction-Page-Maker Setup the api Upload the flask api on your host Setup requirements Make pages file on your host and upload the css and js and

SQLAlchemy database migrations for Flask applications using Alembic

Flask-Migrate Flask-Migrate is an extension that handles SQLAlchemy database migrations for Flask applications using Alembic. The database operations

Adds SQLAlchemy support to Flask

Flask-SQLAlchemy Flask-SQLAlchemy is an extension for Flask that adds support for SQLAlchemy to your application. It aims to simplify using SQLAlchemy

Owner
Rodrigo Vital
Rodrigo Vital
Flask-Discord-Bot-Dashboard - A simple discord Bot dashboard created in Flask Python

Flask-Discord-Bot-Dashboard A simple discord Bot dashboard created in Flask Pyth

Ethan 8 Dec 22, 2022
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Flask-Bcrypt Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. Due to the recent increased prevelance of

Max Countryman 310 Dec 14, 2022
Flask-Rebar combines flask, marshmallow, and swagger for robust REST services.

Flask-Rebar Flask-Rebar combines flask, marshmallow, and swagger for robust REST services. Features Request and Response Validation - Flask-Rebar reli

PlanGrid 223 Dec 19, 2022
Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application.

Flask-Bcrypt Flask-Bcrypt is a Flask extension that provides bcrypt hashing utilities for your application. Due to the recent increased prevelance of

Max Countryman 282 Feb 11, 2021
Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development.

Flask-Starter Flask-Starter is a boilerplate starter template designed to help you quickstart your Flask web application development. It has all the r

Kundan Singh 259 Dec 26, 2022
Brandnew-flask is a CLI tool used to generate a powerful and mordern flask-app that supports the production environment.

Brandnew-flask is still in the initial stage and needs to be updated and improved continuously. Everyone is welcome to maintain and improve this CLI.

brandonye 4 Jul 17, 2022
Flask Project Template A full feature Flask project template.

Flask Project Template A full feature Flask project template. See also Python-Project-Template for a lean, low dependency Python app. HOW TO USE THIS

Bruno Rocha 96 Dec 23, 2022
A Fast API style support for Flask. Gives you MyPy types with the flexibility of flask

Flask-Fastx Flask-Fastx is a Fast API style support for Flask. It Gives you MyPy types with the flexibility of flask. Compatibility Flask-Fastx requir

Tactful.ai 18 Nov 26, 2022
Flask-app scaffold, generate flask restful backend

Flask-app scaffold, generate flask restful backend

jacksmile 1 Nov 24, 2021
Flask pre-setup architecture. This can be used in any flask project for a faster and better project code structure.

Flask pre-setup architecture. This can be used in any flask project for a faster and better project code structure. All the required libraries are already installed easily to use in any big project.

Ajay kumar sharma 5 Jun 14, 2022