Check certificates
This commit is contained in:
parent
87c794bb70
commit
2261cef1fe
2
rdit.sh
2
rdit.sh
|
@ -6,7 +6,7 @@ useragent="Love by u/gadelat"
|
||||||
|
|
||||||
subreddit=$1
|
subreddit=$1
|
||||||
url="https://www.reddit.com/r/$subreddit/.json"
|
url="https://www.reddit.com/r/$subreddit/.json"
|
||||||
content=`wget -U "$useragent" --no-check-certificate -q -O - $url`
|
content=`wget -U "$useragent" -q -O - $url`
|
||||||
mkdir -p $output
|
mkdir -p $output
|
||||||
while : ; do
|
while : ; do
|
||||||
urls=$(echo -e "$content"|grep -Po '"source": {"url":.*?[^\\]",'|cut -f 6 -d '"')
|
urls=$(echo -e "$content"|grep -Po '"source": {"url":.*?[^\\]",'|cut -f 6 -d '"')
|
||||||
|
|
Loading…
Reference in New Issue