This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# bash web crawler | |
# $ bash crawl.sh http://example.com 1 | |
# NOTE: this version ignores static files, see in last pipe of the visit function | |
# TODO: | |
# 1. avoid loops by calling same urls ony once per entire script | |
# 2. do not use txt lists |