Table of Contents
This tool is designed to collect game metrics from Chess.com, aiding players in better understanding their performance. By analyzing games manually, it provides insights without the need for premium features.
It's important to understand the ethical and legal aspects of web scraping. This tool was specifically developed to analyze games on Chess.com without bypassing any paid features. However, it should be noted that web scraping without permission or against a website's terms of service can be a breach of legal or ethical standards.
NOTE: This tool should NOT be modified to take in advantage during live games. All metrics are meant to be collected post-game and then uploaded to the designated server for proper analysis.
- Make sure you have completed a game on Chess.com.
- Install necessary dependencies:
pip install -r requirements.txt
- Make sure you have a compatible Chess engine installed in the same directory (e.g stockfish). Checkout
https://stockfishchess.org/download/
- Wait for the game to complete. Select your preferred browser and install the corresponding webdriver. For Chrome, for example, visit
https://chromedriver.chromium.org/downloads
. You'll have to set the webdriver path inapi.py
. - Launch the tool and execute:
python api.py
- Your game will be recorded into a file called
games.txt
. Next versions of this bot will auto analyze games in that file to give powerful insights. Coming soon!
GAME: 1. e4 e5 2. Nf3 Nc6 3. Bc4 g6 4. c3 Bg7 5. d4 d6 6. O-O Qe7 7. Re1 Nf6 8. Nbd2 O-O 9. b4 Bd7 10. a4 Rae8 11. b5 Na5 12. dxe5 dxe5 13. Ba3 Qd8 14. Bxf8 Bxf8 15. Ba2 h6 16. Nb3 Nxb3 17. Qxb3 Be6 18. Qb2 Nh5 19. Bxe6 Rxe6 20. Rad1 Qf6 21. Rd7 Bd6 22. Qb3 Nf4 23. Qc4 b6 24. g3 Nh5 25. Kg2 g5 26. Rd1 Qg6 27. a5 Ng7 28. a6 Nh5 29. R7xd6 Rxd6 30. Nxe5 Qf6 31. Rxd6 cxd6 32. Nc6 g4 33. Qd3 Qe6 34. Nxa7 Nf6 35. Nc6 Nxe4 36. a7 Nc5 37. Qe3 Qd5+ 38. Kg1 Qd1+ 39. Kg2 Qd5+ 40. f3 Qa2+ 41. Qf2 gxf3+ 42. Kxf3 Qd5+ 43. Kg4 h5+ 44. Kh4 Ne4 45. a8=Q Kg7+ 46. Qf4 Nf6 47. Qg5 Qxg5+
GAME: 1. d4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abs or OBS, retrieve chess.com live ratings with the command:
python retrieveRating.py user1 user2 user3
This tool is for personal use only. Any misuse, especially during live games, can result in the suspension or banning of your Chess.com account. Always respect Chess.com's terms of service and ensure you're not infringing on any rights.