Giter Club home page Giter Club logo

autobeatpack's Introduction

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.

  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?

autobeatpack's People

Contributors

saltssaumure avatar

Stargazers

 avatar

Watchers

 avatar  avatar

autobeatpack's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.