Skip to content

Automatic parallel download of osu! beatmap packs from the official source. No more relying on 3rd party mirrors or outdated lists.

License

Notifications You must be signed in to change notification settings

Osumatic/AutoBeatPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy me a coffee on ko-fi

Automatic parallel download of osu! beatmap packs from the official source. No more relying on 3rd party mirrors or outdated lists.

A screenshot of AutoBeatPack running in Powershell.

Setup and usage

All commands are run in the main AutoBeatPack folder.

Requirements

  • Python >=3.9 (3.11-3.12 tested)

Script setup

  1. Create virtual environment
    • py -3.12 -m venv .venv (change 3.12 to your Python version)
  2. Activate virtual environment
    • PowerShell: .venv\Scripts\Activate.ps1
    • Command Prompt: .venv\Scripts\activate.bat
    • macOS / Linux: source myvenv/bin/activate
  3. Install requirements
    • py -m pip install -r requirements.txt

OAuth setup

The API key is used to get the latest list of beatmap packs from the osu! website every time the script is run. Do NOT upload your API key to GitHub or anywhere else! Keep it on your own computer only.

  1. Go to osu! account settings and click "New OAuth Application"
  2. Enter the following values and then click "Register application":
    • Application name: AutoBeatPack
    • Application Callback URLs: http://localhost:7272
  3. Make a file named api_keys.txt in the main AutoBeatPack folder and paste the values:
    • Client ID on the first line
    • Client Secret on the second line

Run script

  1. Activate virtual environment
    • PowerShell: .venv\Scripts\Activate.ps1
    • Command Prompt: .venv\Scripts\activate.bat
    • macOS / Linux: source myvenv/bin/activate
  2. Run script
    • py download.py

Config

This script has several config profiles provided in config.txt for quick usage. All the values can be edited and new profiles can be created. A profile is used by entering its name when prompted by the script.

Variables

FirstPack

  • Number of the first pack to be downloaded
  • Use a whole number between 1 and LastPack
  • Default: 1

LastPack

  • Number of the last pack to be downloaded
  • Use a whole number greater than 1
  • Default: 9999

BatchSize

  • Maximum number of beatmaps to download at once
  • Too high a number will cause all connections to drop (anti-spam), 1 to 10 recommended
  • Default: 3

DownloadFolder

  • Location to store downloaded beatmap packs
  • Relative to the main AutoBeatPack folder OR anywhere if a full absolute path is given.
  • Default: beatpacks

PackCategory

PackMode

  • Game mode: osu!, osu!taiko, osu!catch, osu!mania, loved
  • Applies when PackCategory is set to standard. Mode loved contains old Loved packs before the start of Project Loved.
  • Default: osu!

Creating a new profile

  1. Add a section to config.txt starting with the name of the profile in square brackets:
    [CoolProfileName]
    
  2. Underneath, copy and edit variables you wish to change from the DEFAULT profile. Any missing variables will inherit its value from DEFAULT automatically.
    [CoolProfileName]
    StartPack = 750
    BatchSize = 6
    # This profile downloads the 750th and onward standard osu! beatmap pack
    # And does it groups of 6
    
  3. Save your changes before running download.py. Enter your profile name when prompted, without square brackets.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

  • TL;DR;NAL: Do whatever you want with this, as long as you allow others to do the same.

Questions or suggestions?

About

Automatic parallel download of osu! beatmap packs from the official source. No more relying on 3rd party mirrors or outdated lists.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages