Check certificates

This commit is contained in:
Gabriel Ostrolucký 2018-04-07 17:08:31 +02:00
parent 87c794bb70
commit 2261cef1fe
1 changed files with 2 additions and 2 deletions

View File

@ -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 '"')
@ -30,4 +30,4 @@ while : ; do
url="https://www.reddit.com/r/$subreddit/.json?count=200&after=$after" url="https://www.reddit.com/r/$subreddit/.json?count=200&after=$after"
content=`wget -U "$useragent" --no-check-certificate -q -O - $url` content=`wget -U "$useragent" --no-check-certificate -q -O - $url`
#echo -e "$urls" #echo -e "$urls"
done done