al3xkras / chess-com-bot-selenium Goto Github PK
View Code? Open in Web Editor NEWChess.com bot (Docker-Selenium)
Chess.com bot (Docker-Selenium)
Make it work if it doesn't pls
Great release.
How do you make it move the pieces "slower" to appear more legitmate
Hey Alex,
i installed your script on my Windows Machine. The first move works without problem, but then I will get this error Message:
(main.py:573)←[0m ←[0m2024-07-17 11:37:52 ←[32m[INFO] [←[32mchess-log,←[32m main.py:407]←[0m←[38;20m: Board: <selenium.webdriver.remote.webelement.WebElement (session="dc029f43251280d13b91a861176a20cc", element="f.0EC23E972DB1C283AADEEC4C3844C71E.d.EDFE93657D922298F600B4983D78FD9C.e.128")>←[0m ←[0m2024-07-17 11:37:52 ←[32m[INFO] [←[32mchess-log,←[32m main.py:419]←[0m←[38;20m: Is playing black pieces: False←[0m ←[0m2024-07-17 11:37:52 ←[33;20m[DEBUG]←[36m [chess-log,←[36m main.py:215]:←[0m←[38;20m <play> call took 0.000000s←[0m ←[31;20m 2024-07-17 11:37:54 [chess-log]: Traceback (most recent call last): File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 565, in loop return await actions(engine, driver) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 457, in actions await play(driver_, engine, mv_) File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 380, in play raise e File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 368, in play await wait_until(driver, C.wait_2s, find_element_and_click( File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 238, in wait_until return await CustomTask( ^^^^^^^^^^^^^^^^^ File "C:\Users\mark\Desktop\chess-com-bot\main.py", line 236, in wait_until_sub return WebDriverWait(drv_, delay_).until(condition_) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mark\Desktop\chess-com-bot\venv\Lib\site-packages\selenium\webdriver\support\wait.py", line 105, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:
How can I solve this?
Kind regards
Mark
Sorry I couldn't find any other way to contact you
I'm making a chrome extension bot for chess.com also however im struggling to move the pieces i couldn't find the dom element that has the event listeners for clicking the piece in order to move it
I've tried all elements that have the mousedown, click (the board included)event listeners but couldn't make it
Can you explain me to me how did you move the pieces i'm not familiar with selenium
Thank you
[email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.