Browse Source

Re-build README.Rmd

master
runner 4 months ago
parent
commit
cb551e5dad
1 changed files with 62 additions and 60 deletions
  1. +62
    -60
      README.md

+ 62
- 60
README.md View File

@@ -3,16 +3,17 @@

# speedrunr

[![Travis build
status](https://travis-ci.org/jemus42/speedrunr.svg?branch=master)](https://travis-ci.org/jemus42/speedrunr)
<!-- badges: start -->

[![R build
status](https://github.com/jemus42/speedrunr/workflows/R-CMD-check/badge.svg)](https://github.com/jemus42/speedrunr/actions)
[![CRAN
status](https://www.r-pkg.org/badges/version/speedrunr)](https://cran.r-project.org/package=speedrunr)
[![GitHub
release](https://img.shields.io/github/release/jemus42/speedrunr.svg?logo=GitHub)](https://github.com/jemus42/speedrunr/releases)
[![GitHub last commit
(master)](https://img.shields.io/github/last-commit/jemus42/speedrunr/master.svg?logo=GithUb)](https://github.com/jemus42/speedrunr/commits/master)

</div>
<!-- badges: end -->

The goal of speedrunr is to easily access data from
[speedrun.com](https://speedrun.com).
@@ -32,8 +33,9 @@ runs.
Let’s get started:

``` r
library(dplyr)
library(knitr)
library(speedrunr)
library(dplyr) # Data manip
library(knitr) # Tables
```

### Identifiyng the game you’re looking for
@@ -55,9 +57,9 @@ games %>%
| j1l9qz1g | The Legend of Zelda: Ocarina of Time | oot |
| kdkjex1m | The Legend of Zelda: Ocarina of Time Master Quest | ootmq |
| 268vqkdp | The Legend of Zelda: Ocarina of Time 3D | oot3d |
| nd2qgrd0 | Roblox Ocarina Of Time | root |
| 76rkv4d8 | Ocarina of Time Category Extensions | ootextras |
| m1zromd0 | Ocarina of Time Beta Quest | ootbq |
| v1pol9m6 | SM64: Ocarina of Time | sm64oot |

Turns out `j1l9qz1g` is the id we’re looking for.

@@ -77,9 +79,9 @@ categories %>%
| q255jw2o | 100% | per-game |
| 824qn3k5 | 100% | per-level |
| zdnoz72q | All Dungeons | per-game |
| z275w5k0 | Any% | per-game |
| q25g198d | Any% | per-game |
| 02qe4z2y | Any% | per-level |
| 9kvr802g | Ganonless | per-game |
| zd35jnkn | Glitchless | per-game |

So apparently we’re looking for `q255jw2o`, the full-game 100% category.

@@ -94,30 +96,30 @@ sure to get *all* the runs.
runs <- get_runs(game = "j1l9qz1g", category = "q255jw2o")

glimpse(runs)
#> Observations: 100
#> Variables: 22
#> $ id <chr> "y43vwl3z", "y430d2dz", "yd3orkxz", "mk9rgxxz",
#> $ weblink <chr> "https://www.speedrun.com/oot/run/y43vwl3z", "ht
#> $ game <chr> "j1l9qz1g", "j1l9qz1g", "j1l9qz1g", "j1l9qz1g", …
#> $ level <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, …
#> $ category <chr> "q255jw2o", "q255jw2o", "q255jw2o", "q255jw2o", …
#> $ videos <chr> "https://www.twitch.tv/videos/398083535", "https
#> $ status <chr> "verified", "verified", "verified", "verified", …
#> $ comment <chr> NA, "didn't expect my second valid run to be a r
#> $ player_id <chr> "kj9m2d7x", "68wvk24x", "kj9m2d7x", "68wvk24x",
#> $ player_url <chr> "https://www.speedrun.com/user/Kneeper", "https:
#> $ player_name <chr> "Kneeper", "gummee", "Kneeper", "gummee", "Angel
#> $ player_role <chr> "user", "user", "user", "user", "user", "user", …
#> $ player_signup <dttm> 2019-03-07 08:22:06, 2019-03-07 06:43:08, 2019-
#> $ date <date> 2019-03-19, 2019-03-15, 2019-03-07, 2019-03-07,
#> $ submitted <dttm> 2019-03-20 03:05:21, 2019-03-16 03:20:52, 2019-
#> $ time_primary <int> 19937, 18773, 21572, 19416, 16156, 15282, 16304,
#> $ time_realtime <int> 19937, 18773, 21572, 19416, 16156, 15282, 16304,
#> $ time_ingame <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
#> $ time_hms <time> 05:32:17, 05:12:53, 05:59:32, 05:23:36, 04:29:1
#> $ system_platform <chr> "nzelreqp", "w89rwelk", "nzelreqp", "w89rwelk",
#> $ system_emulated <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,…
#> $ system_region <chr> "o316x197", "o316x197", "o316x197", "o316x197", …
#> Rows: 100
#> Columns: 22
#> $ id <chr> "y9015e2y", "yd55novm", "z5j7l4nm", "zpr4kk8m", "mrke
#> $ weblink <chr> "https://www.speedrun.com/oot/run/y9015e2y", "https:/
#> $ game <chr> "j1l9qz1g", "j1l9qz1g", "j1l9qz1g", "j1l9qz1g", "j1l9
#> $ level <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, N
#> $ category <chr> "q255jw2o", "q255jw2o", "q255jw2o", "q255jw2o", "q255
#> $ videos <chr> "https://www.twitch.tv/videos/608790240", "https://ww
#> $ status <chr> "verified", "verified", "verified", "verified", "veri
#> $ comment <chr> NA, "3rd try Dampe", "This run sucks.", NA, "Finally
#> $ player_id <chr> "zx73zzvj", "v813d3xp", "pj00zwjw", "v8l62g78", "v8lr
#> $ player_url <chr> "https://www.speedrun.com/user/JoeCool", "https://www
#> $ player_name <chr> "JoeCool", "glitchymon", "EnNopp112", "EricDaCleric",
#> $ player_role <chr> "user", "user", "user", "user", "user", "user", "user
#> $ player_signup <dttm> 2019-09-10 02:55:31, 2015-03-05 22:12:19, 2015-06-25
#> $ date <date> 2020-05-01, 2020-04-06, 2020-04-12, 2020-04-21, 2020
#> $ submitted <dttm> 2020-05-02 04:21:10, 2020-04-28 11:01:30, 2020-04-21
#> $ time_primary <int> 18240, 13465, 13805, 13847, 35313, 14660, 20783, 1362
#> $ time_realtime <int> 18240, 13465, 13805, 13847, 35313, 14660, 20783, 1362
#> $ time_ingame <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
#> $ time_hms <time> 05:04:00, 03:44:25, 03:50:05, 03:50:47, 09:48:33, 04
#> $ system_platform <chr> "nzelreqp", "nzelreqp", "nzelreqp", "nzelreqp", "w89r
#> $ system_emulated <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALS
#> $ system_region <chr> "o316x197", "o316x197", "o316x197", "o316x197", "o316
```

And now we can basically re-create the leaderboard, but including
@@ -134,28 +136,28 @@ runs %>%
kable()
```

| submitted | time\_primary | player\_name |
| :------------------ | :------------ | :------------- |
| 2018-11-28 02:03:45 | 03:53:33 | zfg |
| 2018-10-31 01:33:08 | 03:54:52 | zfg |
| 2018-09-23 01:03:54 | 03:56:08 | zfg |
| 2018-08-21 04:27:10 | 03:57:38 | zfg |
| 2018-10-11 04:03:38 | 03:58:28 | Marco |
| 2018-08-02 02:15:56 | 03:58:45 | zfg |
| 2018-09-29 13:12:43 | 03:59:17 | Marco |
| 2018-09-17 12:49:58 | 04:00:47 | Marco |
| 2018-07-28 05:47:32 | 04:01:05 | zfg |
| 2018-09-01 04:40:41 | 04:01:39 | Marco |
| 2018-07-22 03:15:39 | 04:03:24 | zfg |
| 2018-08-04 04:03:15 | 04:03:40 | Marco |
| 2018-09-09 23:02:52 | 04:07:04 | MasterMonk1991 |
| 2018-07-25 04:07:52 | 04:07:23 | Marco |
| 2018-08-23 00:22:32 | 04:07:57 | Bonooru |
| 2018-08-18 03:12:47 | 04:09:42 | Bonooru |
| 2018-10-13 20:39:56 | 04:09:43 | dannyb21892 |
| 2018-08-24 10:36:10 | 04:09:50 | MasterMonk1991 |
| 2018-08-23 14:48:18 | 04:10:14 | MasterMonk1991 |
| 2018-07-20 01:17:13 | 04:10:32 | Marco |
| submitted | time\_primary | player\_name |
| :------------------ | :------------ | :----------- |
| 2020-04-28 11:01:30 | 03:44:25 | glitchymon |
| 2020-04-03 08:26:30 | 03:45:59 | glitchymon |
| 2020-04-12 11:36:02 | 03:47:00 | AxelLarsen |
| 2020-04-11 02:34:15 | 03:48:01 | AxelLarsen |
| 2020-03-19 00:14:45 | 03:49:23 | glitchymon |
| 2020-02-18 18:45:03 | 03:49:58 | glitchymon |
| 2020-04-21 12:30:19 | 03:50:05 | EnNopp112 |
| 2020-03-28 11:59:22 | 03:50:31 | AxelLarsen |
| 2020-04-21 10:02:01 | 03:50:47 | EricDaCleric |
| 2020-02-29 09:55:40 | 03:50:47 | Marco |
| 2019-12-20 00:23:32 | 03:51:34 | glitchymon |
| 2020-03-22 10:06:41 | 03:52:14 | AxelLarsen |
| 2019-11-26 11:43:07 | 03:52:21 | glitchymon |
| 2019-12-19 17:59:29 | 03:53:27 | Marco |
| 2019-10-29 02:06:15 | 03:54:15 | glitchymon |
| 2020-03-20 12:07:33 | 03:54:49 | AxelLarsen |
| 2020-03-06 08:34:33 | 03:55:24 | AxelLarsen |
| 2019-11-16 07:33:14 | 03:55:32 | Marco |
| 2019-11-01 18:23:51 | 03:55:52 | Marco |
| 2020-03-30 17:31:17 | 03:57:18 | EricDaCleric |

### More data

@@ -211,11 +213,11 @@ runs %>%

| time\_primary | system\_region | system\_platform |
| ------------: | :------------- | :------------------ |
| 14258 | JPN / NTSC | Wii Virtual Console |
| 22987 | JPN / NTSC | Nintendo 64 |
| 15689 | JPN / NTSC | Wii Virtual Console |
| 15060 | JPN / NTSC | Wii Virtual Console |
| 15762 | JPN / NTSC | Wii Virtual Console |
| 16178 | JPN / NTSC | Wii Virtual Console |
| 27921 | JPN / NTSC | Wii Virtual Console |
| 13894 | JPN / NTSC | Wii Virtual Console |
| 17804 | JPN / NTSC | Wii Virtual Console |
| 13831 | JPN / NTSC | Wii Virtual Console |

## Code of Conduct



Loading…
Cancel
Save