write code to go through multi-pagesweb site