Extract url into a variable