Skip to content

Instantly share code, notes, and snippets.

@burritosoftware
Last active September 25, 2021 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burritosoftware/aca3f546e5fb0b6a0907ce9056070246 to your computer and use it in GitHub Desktop.
Save burritosoftware/aca3f546e5fb0b6a0907ce9056070246 to your computer and use it in GitHub Desktop.
Beat Saber dumping
import json
import os
import time
# Enter your username and password in the variables below
# This script should be placed in a directory with:
# DepotDownloader: https://github.com/SteamRE/DepotDownloader/releases/latest
# Latest BSVersions.json: https://raw.githubusercontent.com/RiskiVR/BSLegacyLauncher/master/Resources/BSVersions.json
# clean.py: https://gist.githubusercontent.com/burritosoftware/e80048ea18c591be3fd6bd3eda7b90d1/raw/f51538d5378986618cc0673dfe42958a1b5da407/clean.py
username = ''
password = ''
with open('BSVersions.json') as versions_file:
versions = json.load(versions_file)
downloaded = os.listdir('Beat Saber Versions')
for version in versions:
if version['BSVersion'] not in downloaded:
print('Downloading ' + version['BSVersion'])
os.system('DepotDownloader.exe -app 620980 -depot 620981 -manifest ' + version['BSManifest'] + ' -username ' + username + ' -password ' + password + ' -dir "Beat Saber Versions/' + version['BSVersion'] + '"')
os.system('python clean.py')
print('Next version in 20 seconds')
time.sleep(20)
else:
print(version['BSVersion'] + ' already downloaded')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment