I have successfully used importxml to pull down data from live NBA games on espn.com. However, I need the importxml function to refresh every minute (or some frequent amount of time) to keep fetching the live data and have it update in my google sheets.
I found this script online to refresh the import xml but it adds a jquery string to the end of the URL for cache busting. The jquery string at the end of the URL changes the URL from being in a specific game like this: https://www.espn.com/nba/game?gameId=401161051 (which would successfully fetch the data) back to just the NBA scoreboard: https://www.espn.com/nba/game?gameId=401161051.1234232
I need the import xml function to successfully refresh while cache busting, without adding a random number to the end of the URL because espn sends you to a different page if that happens.
This is my import XML function that works successfully
=IMPORTXML("https://www.espn.com/nba/matchup?gameId=401161049","//tr[20]")

imported content is emptyyou can't use rand() in import functions so not sure how you even tested random number. - CodeCamper