Written in BASH. It will write all founded links within the same domain into a file.