Having done this type of work before for a legitimate purpose, it is almost certainly a python or perl script with a nice library in front of it that makes it easy to follow links.
wget is too brittle, not extensible enough, and not as maintainable as a nice python script.