mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-02 11:54:43 +00:00
Add alexa run debug flag.
This commit is contained in:
parent
c4e15c7b88
commit
57c2fd7b22
1 changed files with 5 additions and 1 deletions
|
|
@ -10,11 +10,15 @@
|
|||
# Note that the result can depend on the current location.
|
||||
# Some sites have geo-location-aware content.
|
||||
set -u
|
||||
# always use default language
|
||||
LANG=C
|
||||
# for debugging
|
||||
#DEBUG=-Dall
|
||||
DEBUG=
|
||||
logfile=alexa_1m.log
|
||||
errfile=alexa_1m_err.log
|
||||
rm -f $logfile $errfile
|
||||
for url in $(shuf $HOME/src/alexatopsites/top-1m.txt); do
|
||||
echo "Checking $url" | tee -a $logfile | tee -a $errfile
|
||||
./linkchecker -r1 --no-status -Dall $url >> $logfile 2>>$errfile
|
||||
./linkchecker -r1 --no-status $DEBUG $url >> $logfile 2>>$errfile
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue