Automating tasks using a web crawler