1
0
Fork 0

Compare commits

..

No commits in common. "fbb59e80f16c85b56907874547b37defef9b1a96" and "a77c2c456805efaec11233a77de735204523771e" have entirely different histories.

2 changed files with 7 additions and 17 deletions

View file

@ -67,6 +67,10 @@ in
p.erlang
p.fennel
p.fish
p.git_rebase
p.gitattributes
p.gitcommit
p.gitignore
p.graphql
p.heex
p.html

View file

@ -1,24 +1,10 @@
#!/usr/bin/env nu
let base_url = "https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?"
def "main subreddit" [
subreddit: string
def main [
--subreddit: string
--sort: string = "hot"
--limit: int = 999
] {
let url = $"($base_url)args[subreddit]=($subreddit)&args[sort]=($sort)&args[limit]=($limit)"
let url = $"https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?args[subreddit]=($subreddit)&args[sort]=($sort)"
http get $url | ignore
}
def "main user" [
user: string
--limit: int = 9999
] {
let url = $"($base_url)args[user]=($user)&args[limit]=($limit)"
http get $url | ignore
}
def main [] {}