Answers.Body: <p>You can just scrape the HTML. Here's a picture of the HTML that chess.com uses to store moves:</p>
  <p><a href="https://i.sstatic.net/6kPJZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6kPJZ.png" alt="enter image description here" /></a></p>
  <p>Most modern languages have ways of scraping HTML on update, so this should solve your problem.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-09T21:34:02.990Z
Answers.LastActivityDate: 2022-02-09T21:34:02.990Z
Answers.UserDisplayName: Rushabh Mehta
Answers.Body: <p>If you click the &quot;Explorer&quot; icon during the game, it will open the Opening Explorer page in a new window. The URL of the page will contain the move list. For example:</p>
  <p><code>https://www.chess.com/explorer?moveList=e4+e5+Nf3+Nc6</code></p>
  <p>If you want the actual PGN, it can also easily be accessed from that page using the normal buttons.</p>
  <p>I assume there's some limit as to how many moves are allowed, although I just tried it 35 moves into a game and it still had all the moves.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-08T23:33:14.260Z
Answers.Text: Do you know if there's a way to export this in some way?
Answers.UserDisplayName: TheCodedMaster Cubing
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-08T21:14:35.117Z
Answers.LastActivityDate: 2022-02-08T21:14:35.117Z
Answers.UserDisplayName: D M
Body: <p>I would like to make something that has the capability to convert a chess game in chess.com to a text-to-speech output (for example to play blindfolded.) I know this has been made before, but I'm not looking for the product but rather the process. Is there a way to extract moves as they are being made or the PGN or something like that from a live chess.com game while it's happening? Assume I know everything I need to know, just give me the explanation if possible.</p>
  
Tags: <online-chess><pgn><chess.com>
Title: Is there a way to extract the position from a live chess game while it's happening in chess.com?
ThreadText: # Is there a way to extract the position from a live chess game while it's happening in chess.com?
  
  (Asked by: username_0 on 2022-02-08)
  
  I would like to make something that has the capability to convert a chess game in chess.com to a text-to-speech output (for example to play blindfolded.) I know this has been made before, but I'm not looking for the product but rather the process. Is there a way to extract moves as they are being made or the PGN or something like that from a live chess.com game while it's happening? Assume I know everything I need to know, just give me the explanation if possible.
  
  **Tags:** online-chess, pgn, chess.com
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2022-02-09. Score: 2 | Accepted answer
  
  You can just scrape the HTML. Here's a picture of the HTML that chess.com uses to store moves:
  
  [![enter image description here](https://i.sstatic.net/6kPJZ.png)](https://i.sstatic.net/6kPJZ.png)
  
  Most modern languages have ways of scraping HTML on update, so this should solve your problem.
  
  
  ---
  
  ### Answer by username_2 on 2022-02-08. Score: 2
  
  If you click the "Explorer" icon during the game, it will open the Opening Explorer page in a new window. The URL of the page will contain the move list. For example:
  
  `https://www.chess.com/explorer?moveList=e4+e5+Nf3+Nc6`
  
  If you want the actual PGN, it can also easily be accessed from that page using the normal buttons.
  
  I assume there's some limit as to how many moves are allowed, although I just tried it 35 moves into a game and it still had all the moves.
  
  > **Comments:**
  > **username_0**: Do you know if there's a way to export this in some way?  
  
  ---
  
  