抖音视频下载.py(23年9月份可用)

声明:仅供学习交流使用!!!

抖音无水印视频下载;

  • 首先登录抖音网页端

  • 打开要下载的视频userId

  • 然后编码实现下载

最后是完整代码,拿走就能用那种:

# _*_ coding:utf-8 _*_

import json
import requests
import time
import random

headers = """Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Cookie:  your cookie
Referer: your refer
Sec-Ch-Ua: "Not/A)Brand";v="99", "Microsoft Edge";v="115", "Chromium";v="115"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.188"""
# 将请求头字符串转化为字典
headers =

你可能感兴趣的:(python实用,python)