Parsing out all the links to pages and continuing query if it returns a continue query param