Check certificates
This commit is contained in:
parent
87c794bb70
commit
2261cef1fe
4
rdit.sh
4
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
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue