added fake useragent
This commit is contained in:
parent
373a81ed3d
commit
69d3550b31
|
|
@ -65,10 +65,12 @@ RETRIES=1
|
|||
index=0
|
||||
isVerified=false
|
||||
isHTML=false
|
||||
#Faking firefox as useragent
|
||||
USERAGENT='Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120716 Firefox/15.0a2'
|
||||
|
||||
echo "Will start fetching all a links ..."
|
||||
|
||||
wget -r -l $DEPTH -nd -t $RETRIES -e robots=off --no-check-certificate --follow-tags=a --spider $URL 2>&1 | while read line
|
||||
wget -r -l $DEPTH -nd -t $RETRIES -e robots=off --no-check-certificate --follow-tags=a --spider -U $USERAGENT $URL 2>&1 | while read line
|
||||
do
|
||||
|
||||
# The spider option checks if a file exist, only fetch only existing
|
||||
|
|
|
|||
Loading…
Reference in New Issue