How to get redirected url in Python?
I have a list of url to songs’ tiktok page url in the form of f’https://www.tiktok.com/music/-{songid}’. If I enter it in my browser, I’ll be redirected to a page with a longer url, which is what I want to get.
I have a list of url to songs’ tiktok page url in the form of f’https://www.tiktok.com/music/-{songid}’. If I enter it in my browser, I’ll be redirected to a page with a longer url, which is what I want to get.