Passing url to extract function