Coder Social home page Coder Social logo

automata's Introduction

# Automation

Here you'll be able to find some automation programs written as a didactic way of learning python.

The code for this project has been reproduced from http://automatetheboringstuff.com/

Get the current position of the mouse in the screen and the correspondent RGB color

This tool is coded in mouseNow.py.

This will give you the current position of your mouse and the RGB color of the pixel itself.

pyautogui

pyautogui is the main library used for this purpose. The functions and methods used are listed bellow:

  • position: returns the position of the mouse given a certain x,y coordinates
  • screenshot: produces a screenshot
  • getpixel: get an RGB tuple for the color of a pixel at specific coordinates

Automatically fill out an online form

Filling forms could get tedious some times. This tool is aimed to ease this repetitive task. As a use case, it is implemented to get an appointment for a EU citizen that wants to get his/her NIE document, although it could serve in other cases by modifying some parameters.

Requirements

The following are necesary to run this program.

  • Download latest executable geckodriver from here to run latest firefox using selenium: https://github.com/mozilla/geckodriver/releases
  • On Unix systems you can do the following to append it to your system’s search path, if you’re using a bash-compatible shell:
export PATH=$PATH:/path/to/directory/of/executable/downloaded/in/previous/step
  • On Windows you will need to update the Path system variable to add the full directory path to the executable geckodriver manually or command line (don't forget to restart your system after adding executable geckodriver into system PATH to take effect). The principle is the same as on Unix.

Variables

It will be necessary to substitute the values of the following variables in the program for the form to be filled out according to the applicant's data:

  • province
  • certificates: the current one is set for EU members to get the NIE
  • tramit: the current one is set for EU members to get the NIE
  • passport_number
  • name

automata's People

Contributors

carlosdavila91 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.