downloader

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package downloader implements downloading from the osu! website, through, well, mostly scraping and dirty hacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client http.Client

Client is a wrapper around an http.Client which can fetch beatmaps from the osu! website.

func LogIn

func LogIn(username, password string) (*Client, error)

LogIn logs in into an osu! account and returns a Client.

func (*Client) Download

func (c *Client) Download(setID int) (io.Reader, io.Reader, error)

Download downloads a beatmap from the osu! website. First reader is beatmap with video. Second reader is beatmap without video. If video is not in the beatmap, second reader will be nil and first reader will be beatmap without video.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL