getPage function queries the url and return the body length main function walks through a map of URLs sending each to getPage