Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quat1024/daily-challenge
Daily challenge scraper + learning deno, oauth, ts and such
https://github.com/quat1024/daily-challenge
Last synced: 11 days ago
JSON representation
Daily challenge scraper + learning deno, oauth, ts and such
- Host: GitHub
- URL: https://github.com/quat1024/daily-challenge
- Owner: quat1024
- Created: 2024-08-05T03:56:05.000Z (5 months ago)
- Default Branch: trunk
- Last Pushed: 2024-08-11T01:38:21.000Z (4 months ago)
- Last Synced: 2024-08-11T02:41:40.113Z (4 months ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# daily challenge scraper
Really an excuse to play with the osu! api, learn oauth and stuff.
## Usage
### Making an osu! oauth app
* On the osu! website, click Settings, scroll down to OAuth, click New OAuth Application.
* Choose a name (doesn't matter) and set the "application callback URL" to `http://localhost:1237/oauth-redirect/`.
* Create the file `./private/oauth-app.json` with the following contents:```json
{
"client_id": "YOUR CLIENT ID",
"client_secret": "YOUR CLIENT SECRET)",
"redirect_uri": "http://localhost:1237/oauth-redirect/"
}
```Do not share the contents of `./private/oauth-app.json`.
### Running the program
* Install `deno`.
* Run `deno task run`.
* Program will prompt you to authorize your account. Open the URL dumped into the console and authorize on osu!'s website.
* Your token will be saved in `./private/auth-token.json`. Do not share this file.
* TODO: After 24 hours the token will go stale, you'll have to manually delete this file to reauthenticate.
* I should refresh the token when it's used, detect when it's expired and prompt to sign in again, etc.
* Program will run.