Adding a custom useragent to our application and splitting off getting URLs into its own helper function