Hi, monks:
I have a list of 600K input websites which need to be validated, currently I am using LWP::Simple's head method, like:
perl -MLWP::Simple -lne' my $ret = head("http://$_"); if (not $ret) { print "NOT\t$_" } else { print "OK\t$_"; } ' list.dat | tee results.txt
which works but very slow. Are there better ways to handle this(perl/wget/lynx/curl)? And I've noticed that LPW::Simple::head also returns "0.00", "00.00" as valid addresses although I got nothing from my Browser with these inputs. Are they treated as localhost? what are the rules for this then?
Many thanks
lihao
In reply to Question: Fast way to validate 600K websites by lihao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |