updated the page scrapes to use tail recursion