improve extract_urls.rb to take an array of page URLs to extract URLs from