帮我用python写一个抖音无水印解析
时间: 2023-03-24 19:03:51 浏览: 275
短视频无水印解析网页源码
好的,以下是Python代码:
```python
import requests
url = input("请输入抖音视频链接:")
headers = {
"User-Agent": "Mozilla/5. (Windows NT 10.; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58..3029.110 Safari/537.3"
}
response = requests.get(url, headers=headers, allow_redirects=False)
video_url = response.headers["Location"]
print("无水印视频链接:", video_url)
```
希望能帮到你!
阅读全文