added condition to check for a full URL in scrapeID()