bdfr: download single reddit post
This commit is contained in:
parent
9e014eb265
commit
5802f5bf57
1 changed files with 9 additions and 0 deletions
|
@ -31,4 +31,13 @@ def "main search" [
|
||||||
http get $url | ignore
|
http get $url | ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def "main post" [
|
||||||
|
post: string
|
||||||
|
] {
|
||||||
|
let reddit_url = $post | url encode
|
||||||
|
let url = $"($base_url)args[link]=($reddit_url)"
|
||||||
|
|
||||||
|
http get $url | ignore
|
||||||
|
}
|
||||||
|
|
||||||
def main [] {}
|
def main [] {}
|
||||||
|
|
Loading…
Reference in a new issue