Skip to content

Instantly share code, notes, and snippets.

@lewdev
Created May 24, 2024 02:23
Show Gist options
  • Save lewdev/ecf4040281b9eeceb31fbcc2026b11e3 to your computer and use it in GitHub Desktop.
Save lewdev/ecf4040281b9eeceb31fbcc2026b11e3 to your computer and use it in GitHub Desktop.
๐ŸŽฎ๐Ÿ“ƒ Download Steam Library List as a CSV (446b)

๐ŸŽฎ๐Ÿ“ƒ Download Steam Library List as a CSV (446b)

Visit this URL while logged in your steam account: https://store.steampowered.com/account/licenses/

Copy-paste this code and run in your browser's console

Hit F12, click on the "Console" tab and paste it into the prompt)

a=document.createElement`a`;a.href=URL.createObjectURL(new Blob(["Date,Item,Acquisition Method\n"+[...document.querySelectorAll('.account_table tr > td')].reduce((p,e,i)=>(p[~~(i/3)]=(p[~~(i/3)]||"")+'"'+e.innerHTML.trim().replace(/<\/?[^>]+(>|$)/g,"").replace(/\s+/g," ").replace('"','""').replaceAll(" Remove ","")+'"'+(i%3==2?"":","),p),[]).join`\n`],{type:"text/plain"}));a.click(a.download="steam-games-list.csv");URL.revokeObjectURL(a.href)

This will immediately download a CSV file with all your games with:

  • Date (when you acquired the game or DLC)
  • Title
  • Acquisition Method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment