Skip to content

Human Typer for Selenium - A typer that imitates human errors :')

Notifications You must be signed in to change notification settings

saadejazz/humanTyper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Human-Like Typer for Selenium

This typer writes (and even makes mistakes) like a human. To be used with Selenium.

Getting Started

  • Install the following packages using pip:
    pip install selenium
    pip install scipy
  • Download geckodriver from here

Usage

from utils import setGecko
from typer import Typer

driver = setGecko(executable_path = "/path/to/gecko/executable")
driver.get("https://write-box.appspot.com/")

text = """
    The quick brown fox jumps over the lazy dog.
    The quick brown fox jumps over the lazy dog.
    The quick brown fox jumps over the lazy dog.
    The quick brown fox jumps over the lazy dog.
    The quick brown fox jumps over the lazy dog.
    """
element = driver.find_element_by_id('editor')
element.clear()
ty = Typer(accuracy = 0.90, correction_chance = 0.50, typing_delay = (0.04, 0.08), distance = 2)
ty.send(element, text)

Typing Animation

Notes:

  • accuracy determines how often mistakes are made.
  • correction_chance determines how often corrections are made.
  • typing_delay determines the delay in between each character send.

About

Human Typer for Selenium - A typer that imitates human errors :')

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages