change url to localhost and parse to number