Compare commits
2 commits
a77c2c4568
...
fbb59e80f1
Author | SHA1 | Date | |
---|---|---|---|
fbb59e80f1 | |||
6c8131159f |
2 changed files with 17 additions and 7 deletions
|
@ -67,10 +67,6 @@ in
|
||||||
p.erlang
|
p.erlang
|
||||||
p.fennel
|
p.fennel
|
||||||
p.fish
|
p.fish
|
||||||
p.git_rebase
|
|
||||||
p.gitattributes
|
|
||||||
p.gitcommit
|
|
||||||
p.gitignore
|
|
||||||
p.graphql
|
p.graphql
|
||||||
p.heex
|
p.heex
|
||||||
p.html
|
p.html
|
||||||
|
|
|
@ -1,10 +1,24 @@
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
|
|
||||||
def main [
|
let base_url = "https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?"
|
||||||
--subreddit: string
|
|
||||||
|
def "main subreddit" [
|
||||||
|
subreddit: string
|
||||||
--sort: string = "hot"
|
--sort: string = "hot"
|
||||||
|
--limit: int = 999
|
||||||
] {
|
] {
|
||||||
let url = $"https://media-browser.internal.kempkens.network/management/jobs/BdfrDownload/run?args[subreddit]=($subreddit)&args[sort]=($sort)"
|
let url = $"($base_url)args[subreddit]=($subreddit)&args[sort]=($sort)&args[limit]=($limit)"
|
||||||
|
|
||||||
http get $url | ignore
|
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 [] {}
|
||||||
|
|
Loading…
Reference in a new issue