I Programmed a Keyboard A.I. to DESTROY EVERYONE on TYPERACER!
Ойын-сауық
In this video, I explored the world of automation by attempting to create a bot that simulates keystrokes. I used the Python programming language along with a couple modules to achieve this. Keep in mind this video was only made for educational and entertainment purposes.
💻 Instagram: / im.ardens
💻 Discord: / discord
💻 GitHub: github.com/myNameIsArdens
#programming #tech #computerscience
Credit:
The Angels Weep by Audionautix is licensed under a Creative Commons Attribution 4.0 license. creativecommons.org/licenses/...
Artist: audionautix.com/
Пікірлер: 562
I love these Code Bullet type of channels, keep it up
@Hurateo
2 жыл бұрын
Same
@D1P69
2 жыл бұрын
Can You Tell Me Some Channel Name ?
@peterverduin7156
2 жыл бұрын
Bro, Code Bullet needs to upload more
@D1P69
2 жыл бұрын
@@peterverduin7156 yes
@questionmarkquestionmarkques
2 жыл бұрын
@@peterverduin7156 i'd rather he took his time with his uploads. better for content and his mental health
OpenCv is too overkill for this, if I had to do it I could make a chrome extension that intercepts the Api calls to get the text, and then types it back to the browser using some automation tool like puppeteer but I suppose you have to be familiar with javascript to do that
@Ardens.
2 жыл бұрын
yeahh, but that would be thinking like a good programmer
@arjix8738
2 жыл бұрын
you dont even need to intercept api calls, the text is in plain html
@nano-ai
2 жыл бұрын
yeah, i ended up doing this (vid is on my yt if you want it)
@chervilious
2 жыл бұрын
tbf, "AI" is more clickable than "Chrome Extension".
@Mtg2
2 жыл бұрын
Yeah that’s what I thought
Dude how do you have only around 400 subscribers, the jokes are amazing and the content is gold
@Ardens.
2 жыл бұрын
lol I'm slowly getting some attention and thank you so much
@PilotTurtle
2 жыл бұрын
@@Ardens. bruh this is more than slow Ur funny tho :)
@SchPal
2 жыл бұрын
Since this comment he went to 6x in subs. Algorythm came in clutch. (Nice content, tho u deserve 100x more.)
@Hematite
2 жыл бұрын
3.18k*
@IMCYT
2 жыл бұрын
@@Ardens. You are growing faster, The KZread algorithm has blessed you. Remember me when you are famous xD
This is a cool beginner project. If you were to re-do it, I would suggest using the requests library to reliably fetch the text from the site, and have it be passed into your message function. The library serves as a good introduction into HTTP if you are new!
If you use selenium, you can take the text from the html element directly, assuming the text isn’t an image.
@meistroldcontent
2 жыл бұрын
I was going to say this. You can also send keystrokes using selenium.
@sharathkumark9692
Жыл бұрын
How's beautiful soup library I heard about it didn't used before tho
@katrinabryce
Жыл бұрын
@@sharathkumark9692 I use Beautiful Soup a lot, but I wouldn't choose it for this project.
I really like this channel, mainly because it's so simple to follow along! Seeing libraries that I use being discovered for the first time and utilized so well is really interesting, and a breath of fresh air compared to some other channels that seems like they have to fight the urge to type at 4 million wpm
@Ardens.
2 жыл бұрын
Thank you. I'm glad I'm able to give something of value
This is the epitome of beginner projects, and I love it! Keep making these!
This is really cool, how you can automate keyboard inputs, something that would be super funny is if you coded the code to code itself
This was the finest one yet, in my opinion. Thanks for the laughs. Man, we'll miss you. However, you did an excellent job with this video.
@Ardens.
2 жыл бұрын
Thank you so much! Glad you like it!
Wow that was really cool, you sick man! Keep posting I'll truly keep watching you
you deserve more subscribers and fame dude you're really underrated, keep up with the good work 👍
this is definitely another code bullet
Great video man! I learned a lot, keep it up 👍
@Ardens.
2 жыл бұрын
Glad to hear it!
Nice video! I think OpenCV was a bit overkill but at least you can use it on different websites! I did the something similar a while back and used Selenium. I also made a KZread video showing what I made!
your videos are awesome dude keep it up. I really learned something from this video (I started python few months ago) your video is easy and short
This video is the first one I saw by you. You have earned another subscriber! Great video man!!
A youtube short appeared in my recommended and I watched all your vids and now got to say you're my fav creator in the app!!! Great job with all your vids waiting for the next one!
Your video got on my recommended page keep up the good work
just subbed mate hoping for more great content in the future 🐥
Yo sick bro, its nice to see great content like yours being recognized...gives hope to the rest of us ❤
I have shared your channel with my friends. Can't wait to see untill you reach 100k
@Ardens.
2 жыл бұрын
Fingers crossed!
nice use of pyautogui, now i wanna see more of what you do! lmao ur actually make usefull stuff while i make stuff to make me even more lazier than i already am love it!
I've made a typeracer bot in python like a year or so ago great to see someone else to do it never seen a youtube video anout it and hey you used the same method I used. Take screenshot convert to text and type it
Holy JESUS the quality of your videos ist absolutely insane. Keep up the great work man and you'll make it far
You are underrated, your content is great and your funny af. Keep up the great content and I wish you luck on KZread.
Just found you and I LOVE the content will be watching more!
Damn lol,that was smart! Great video!
That's it. I'm subbing . The quality of this is way too good. btw you should have used a library called selenium to read the text and then type it. Then you would only have to put that in a while loop and it would work
@Ardens.
2 жыл бұрын
Thank you. I really appreciate it. I try. And I didn't know that 🤔 cool
@abdullahfaiyaz7624
2 жыл бұрын
@@Ardens. My job is entirely based on that module (Web scraping) so seeing you not use it made me very surprised
The picture recognition is not so good i think you could use web scraping for that it would be better :)
@nano-ai
2 жыл бұрын
yeah, i ended up doing this using selenium (vid is on my yt if you want it)
@fantasy7777
2 жыл бұрын
Ye i used voice recog
@conspiracy2134
2 жыл бұрын
lol mine was just pure javascript in the inspect console
This guy will reach 1 million very soon im sure as long he still uploads
This is funny. You earned a new subscriber
If you really want to do this in python and not javascript then you could have used selenium and then scrape the key that is expected to be next pressed. I believe there is always the next letter in a html tag on the site
Followed because you're amazing and actually made me laugh. Keep it up broski!
@Jern05
2 жыл бұрын
Subscribed*
dude made a top tier video and said aight imma take a break for work and school see yall later.. mannn I was looking forward to watching alot of content
This gives me code bullet vibes, nice video
A side note that you could have done it with Javascript in a way so it selects the text element and emits the key events each 0.5 second or something
was kinda bored w my major no biggie but damn this made it seem fun again. good looks mane
You can remove the underscore spaces in settings. Great video btw
good job man, i like this video
Congrats on 1k subs!
@Ardens.
2 жыл бұрын
Crazy. Idk what to say besides thank you to everyone who made it possible
I ain’t even gonna lie to you bro, I thought this was a code bullet video at first, but yo shit fire ong
8:01 sounds like an ad for a certain site
You could randomize the pauses between keystrokes to make it look even more human! Also I didn't understand why don't you just scrape the data directly from the source code, it is kinda obsfuscated on keybr but not that much. Thank you for your work this is a really great video overall !
PLEASE MAKE MORE CONTENTT I ENJOY IT
Your overall vibe and jive is similar to Code Bullet, and I love it
Try getting the plain text from the html itself. It's much faster and easier. i dont know how to do it in python, but the idea is as follows: 1) download the page 2) regex the container above the text. 3) get all entries from the regex and remove garbage like ( , /) . 4) use the leftovers. In JS it is even much simpler than that but that should do for now. Love the vids!
@tasty0rang3
2 жыл бұрын
possible to do it all via a python webscraper using selenium. all you need is to get the xpath element containing the plain text and keybind it for whenever the prompt updates
@egoworks5611
2 жыл бұрын
Yeah bro it's just plain text way easier.
Fek I had this idea a couple of days ago, but you already created it :)
this man needs subscribers asap. quality content
Did this too a few months ago, it was a really fun project!
you're my freaking hero man
that intro alone was worth subsciribing for
Dude i aspire to be like you. I'm 18 an tried KZread multiple times and it never worked out. Then got into game dev. If i ever decide to make a yt channel w coding n stuff, bro you'll be my inspiration. Awesome vid. Hope to see more
@Ardens.
2 жыл бұрын
Hey, I'm glad to know that. My advice is to look at what these channels have in common. For example, I noticed comedy played a massive role, so I emulate that in my commentary; there are other factors at play, but that's just one. If you ever decide to try KZread again, I wish you the best outcome. Thanks for commenting.
Awesome video bro
ARDENS HAND AND KEYBOARD RELEAVE!!!! and table too, dont forget.
Yo, I subbed, I hope to see you agian, we finna dust these fools
I clicked this thinking it was code bullet, but stayed for the amazing content Nice video
fun fact you can write imports on one line like this: import pytesseract, pyautogui, cv2, time
Ardens: I'm just goin to kindly trap you here also Ardens: please don't leave
Nice channel bro Keep going, Annnnnd i need that bot bro XD to crush people( i mean teach people;)
this gives code bullet editing/video style vibes
2:34 is clever and I'm also glad someone else called this the Cose Bullet format Edit: guess I'm a bot because I also thought these were underscores
That keyboard gives me eargasms
I recommend against the home row, as it’s known to cause carpel tunnel and cap at around 70 WPM.
this dude def gonna blow up this year
You could also bind the script to a hotkey instead of adding a delay. That way you could hotkey anywhere there is a text box super easy.
nice functional good working easy install thanks
extremely good video, thank you algorithm
If anyone wanted to try this, open typeracer and when the countdown ends paste this into devtools console: let mainEl = document.querySelector("table.inputPanel"); let textEL = mainEl.querySelector("tr"); let text = textEL.innerText.replaceAll(" ", "").split(""); let inputEl = mainEl.querySelector("input"); for (let i = 0; i const letter = text[i]; setTimeout(() => { inputEl.value += letter; }, i * 120 + Math.floor(Math.random() * 10)); } It should be just barely under the 100wpm mark (Use only in free practice mode of course.)
@maximofernandez196
2 жыл бұрын
Jokes aside, this seems cool to learn some js. I just didn't have any idea at the start what query selector was supposed to mean, and then I continued reading and I got what the code meant
@marekprokopec7323
2 жыл бұрын
@@maximofernandez196 Yeah, reading other's code is really helpful, because especially js has so many features that you would never find by yourself and you can kind of observe what they're doing differently than you. Other than that I find doing small stuff like this really nice way to practice your skills.
@maximofernandez196
2 жыл бұрын
@@marekprokopec7323 Yeah, really, I appreciate that. Thank you so much, dude
“No highlighting, no fake underscores, and no baloney.”
9:08 you are a genius
man you're so underrated
Bro this quality of videos and just 3k subs wtfffffff,bro keep it up you will hit 10M one day!!!!!!
Very cool! Ehat you could have done is instead of extracting the text out of the image, you could get the html of the page and extract the exact text from there. I know it seems hard but it's not that hard, look at selenium or beautifulSoup or request_html. Keep going you are doing great! Imma sub
You deserve more subscribers to be honest. :')
This man must be makin' hella bread rn
0:08 BRO THE MOMENT I SUBBED THAT PART ENDED LIKE THE EXACT MOMENT I SUBBED
@Ardens.
2 жыл бұрын
that's crazy😂
i left when you "kindly trapped me"
he's a family friendly code bullet
Will you post the script? I was gonna try your work of art. Anyways great vid!
to make it more realistic you should've made it so it has a random time between letters so use math.random(first number, second number)
Underrated Good Video
It is so strange such quality channel with so little subscribes. I'll do my part at least, subbed!
DAMN that keyboard CRONCHY
I love your content and I am sure you got heavily inspired by CodeBullet (Thumbnail) and Dani ('Borrow'ing code) Idk how to program complex shit like you guys but I get simple pleasures from watching other people suffer 😂
@Ardens.
2 жыл бұрын
Yes, undoubtedly, CB is an inspiration of mine, Dani not so much. I knew if I did the Thumbnail and title like this, it would grab people's attention. However, the downside is now I'm being called a copycat 😂 but it is what it is. I'll continue making tech videos I find fun and entertaining to the public. But thank you, I'm glad you like them.
@snipetdm0001
2 жыл бұрын
@@Ardens. nah this is one of the best original video I have seen 🙂
And also the issues you had are very easy to fix. Just apply a spellcheck on the result and also clear it from special characters. And with the highlighting, just load the image with cv2 as a grayscale with the 0 flag.
@Ardens.
2 жыл бұрын
Your expectations of me are too high
subscribed. liked the video bro.
after 2 videos, i decide susbscribe to your channel, good stuf!
POV: you thought this was a code bullet video (btw I subbed)
ASMR Code Bullet is your kindergarten teacher and explains coding to you
I found your channel today. I thought you have like 3m subscribers and found out you have 3k. you will grow. Mark my words.
that car is on drugs
ive done something similar to this but in typeracer with selenium. Scrape the div that holds the text and type it back with the wpm you choose
'i click refresh' 100000 iq moment
I had made something like this using selenium, it was way easier. Selenium is a browser automation module and it lets you find elements by their id or their xpath, whatever you like. It also lets you type in input boxes.
I literrally subbed liked and shared AND YOU WERE STILL LAUGHING AT ME
You could use selenium driver where you can get text directly by using get element by id or class.
Would have recommended playwright for this, but this solution also works!
To do the cap at ha you could just input the raw data into your source code and use the program to type it from there
Great work i like it