Urgent.News

What's breaking now, across thousands of outlets.

Tech

I Built a Python Bot That Types at 200 WPM. Then I Made It Type Like a Human.

Automating a typing test is easy. Making a machine type like someone who actually makes mistakes? That's where things get interesting. A few days ago, I had a ridiculous thought. What if I could build a Python program that types faster than almost everyone I know? Not an AI that writes essays. Not another ChatGPT wrapper. Just a simple bot that opens a typing test, reads the text, and starts…

The author decided to build a Python program that types faster than anyone else they know, aiming to create a bot that types like a human. They started with a simple bot that types a given text into a typing test page, using the Playwright library for browser automation. The bot could theoretically type at hundreds of words per minute (WPM), but the author found it uninteresting as it typed at a consistent speed. They then aimed to make the bot type like a human by introducing errors, hesitations, and varied typing speeds.

To achieve this, the author first focused on making the bot type at a specific speed. They calculated the delay between characters based on the desired WPM, treating a word as five characters including spaces and punctuation. The bot then typed the text with a delay of 0.06 seconds per character at 200 WPM. However, they noted that the actual measured speed might differ slightly due to browser automation and Python execution overhead.

Next, the author introduced randomness to simulate human typing behavior. They added variation to the delay between characters, using a random factor between 0.75 and 1.25. Additionally, they introduced pauses for punctuation characters and slower typing for unfamiliar words or combinations. While this still did not perfectly mimic human motor behavior, it made the bot's typing behavior less predictable and more human-like.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

We Tested 82 Residential Proxy Providers Across 142,310 Real-World Requests: October 2026 Report

Last month we published the September edition with 80 providers and 115,192 requests. The October edition is out: 82 providers, 6 targets, 142,310 requests , collected from Oct 1 to Oct 31, 2026 (all…

  • 82 residential proxy providers tested across 142,310 real-world requests in October 2026
  • Success rates increased by 4.0 percentage points from 91.5% to 95%, latency up by 0.12 seconds
  • Significant performance differences observed across targets, especially with Google and Amazon

More from Monday 2 November →