Skip to content

Instantly share code, notes, and snippets.

@burritosoftware
Last active Sep 25, 2021
Embed
What would you like to do?
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