import re import requests url = "https://vm.tiktok.com/caFjmh" url2 = requests.get(url).url