From 2261cef1fe3c5f0aef50b06804f5b249b337f16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Sat, 7 Apr 2018 17:08:31 +0200 Subject: [PATCH] Check certificates --- rdit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdit.sh b/rdit.sh index 136f9b8..a688b3f 100644 --- a/rdit.sh +++ b/rdit.sh @@ -6,7 +6,7 @@ useragent="Love by u/gadelat" subreddit=$1 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 while : ; do urls=$(echo -e "$content"|grep -Po '"source": {"url":.*?[^\\]",'|cut -f 6 -d '"') @@ -30,4 +30,4 @@ while : ; do url="https://www.reddit.com/r/$subreddit/.json?count=200&after=$after" content=`wget -U "$useragent" --no-check-certificate -q -O - $url` #echo -e "$urls" -done \ No newline at end of file +done