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