Downloads and Converts .sqls from data.ppy.sh into .csv
Project description
Data PPY CSV Retrieval
Retrieve data from the data ppy dump as CSV files.
:exclamation: Important
I have been given permission to upload the script, however, not the data.
Thus, if you want to upload the data elsewhere, please contact ppy through contact@ppy.sh.
All data provided here is done so with the intention of it being used for statistical analysis
and testing osu! subsystems.
Permission is NOT implicitly granted to deploy this in production use of any kind.
Should you wish to publicly use/expose the data provided here, please contact me first at contact@ppy.sh.
Please see https://github.com/ppy/osu-performance for more information.
Thanks,
ppy
Downloading & Converting
-
pip install osu-data-csv
-
run
osu-data-csv
in the terminalosu-data-csv
A series of prompts should show up. See Arguments below for more info and examples
-
(Alternatively) run in a single command
osu-data-csv \ -y "2022_12" \ -d "mania" \ -s "1000" \ -l "data/" \ -c "N" \ -q "Y"
Arguments
Option | Option (Shorthand) | Desc. | Example |
---|---|---|---|
--year_month | -y | Dataset Year and Month. Will fail if doesn't exist anymore | 2022_10 |
--mode | -d | Gamemode. ['catch', 'mania', 'osu', 'taiko'] | mania |
--set | -s | Dataset of Top 1K or 10K players. ['1000', '10000'] | 1000 |
--dl_dir | -l | Directory to download to. Best if empty. Can be not created. | data/ |
--cleanup | -c | Whether to delete unused files after conversion. ['Y', 'N'] | N |
--bypass_confirm | -q | Whether to bypass confirmation of downloaded and new files. ['Y', 'N'] | N |
It's set to retrieve the following:
osu_user_stats_<MODE>.sql
osu_scores_<MODE>_high.sql
osu_beatmap_difficulty.sql
osu_beatmaps.sql
Output
This will generate a few files. You'd want to retrieve the .csv
.
- main.py
- <dl_dir>/
- 202X_XX_01_performance_<MODE>_top_<SET>.tar.bz2 (*)
- 202X_XX_01_performance_<MODE>_top_<SET>/
- csv/
- osu_user_stats_<MODE>.csv
- _.csv
- ...
- osu_user_stats_<MODE>.sql (*)
- _.sql (*)
- ...
(*)
files are deleted ifcleanup
is enabled.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osu_data_csv-0.1.2.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for osu_data_csv-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb9dc171beeedbac96d26899d0058d1123f6990fa000f23728051bdd1007e6e |
|
MD5 | b402fd094a623cf662204768efd0a4f2 |
|
BLAKE2b-256 | 0359842513ed56d77a9e41719662e14b3f585950d566a61006bf3149e822e545 |