forum

Help with Programming

posted
Total Posts
11
Topic Starter
Your_Doge
Hi, I'm a horrible noob-ass script kiddie who is trying to get better at life.
I'm an average player that plays mainly 6 star maps, and then tried to download them, and as in them I meant all of them. I found this post in reddit https://www.reddit.com/r/osugame/comments/38mozq/is_there_a_list_of_all_6_star_ranked_songs_or_a/ which had the link to all six star maps at the time, so with my basic programming skills, I tried to make a program that would be able to separate the spaces and download all the beatmaps in one fell sweep.

But the problem is that I have no idea how to download a file using java. I got everything else to work, but I have this missing piece in the puzzle of how to download a beatmap using the /d/XXXXXX links. Any help would be greatly appreciated.

Oh and by the way, I have no idea if this is in the right category or not, so... It just seemed fitting.
Bauxe
I don't use java at all, but literally 30 seconds of searching:

http://snipplr.com/view/33805/

There are thousands of posts asking about downloading files in java. Just find one that works
Topic Starter
Your_Doge
I asked this because it seems like osu download is different from just straight hosted files, and I just don't know how to download that kind of file.
Piotrekol
You need to be logged in to download any beatmap from there
//edit I could just paste my python downloader here but I don't like spoon-feeding
Topic Starter
Your_Doge
oh right. Thanks, I guess i'll try and use bloodcat then.
timiimit
You can try to do it with cookies. They basically say to the (in this case osu's) server that you're logged in.
fb39ca4
You'll need to make your HTTP request library handle cookies. Them, just submit the login form with your username and password, and you should be able to download maps.
Topic Starter
Your_Doge
thanks, that's actually a good answer instead of Bauxe (no offense)
-Kanzaki
How do you exactly make it search for 6* ranked maps
-Makishima S-

-Kanzaki wrote:

How do you exactly make it search for 6* ranked maps
JSON object called "difficultyrating" from beatmap node represent star rating.

https://github.com/ppy/osu-api/wiki#beatmap

OP:

You may also try to use bloodcat if you will have truble to implement sending cookie username/passwd data.
If you get data from osu!API, "beatmapset_id" object represent beatmap (mapset) ID which is exacly the same on bloodcat.
As download link you can use: http://bloodcat.com/osu/s/[beatmapset_id]

For example:

https://osu.ppy.sh/s/251437 - Genryuu Kaiko mapped by Mira-san have download link https://osu.ppy.sh/d/251437
Bloodcat download link: http://bloodcat.com/osu/s/251437
From JSON table:
"beatmapset_id":"251437"

Bloodcat does not require any creditionals.

Just to be sure: if sharing this information is against rules, pls remove them, it's just my good will to share this way of fixing problem of downloading beatmaps.
semaphore

Piotrekol wrote:

//edit I could just paste my python downloader here but I don't like spoon-feeding
edgy
Please sign in to reply.

New reply