抖音解析
项目地址:https://github.com/hkslover/douyin_video
去水印原理这里学到了,就是去掉网址的某些内容,服! http://www.mlwei.com/1420.html
写这个项目学习了不少。
- 抖音分享地址302重定向
#获取headers得到重定向地址 html1 = requests.head(url) true_url = html1.headers['Location'] - 字符替换
这个之前接触过
str.replace("原文本","欲替换文本") - tkinter Lable标签组件
#更改Lable标签标题,设置文本居左,多行 Label1_summary["text"] = "Error"#设置标签内容 Label1_summary=tk.Label(windows,text = 'video简介',justify = 'left',wraplength = 多少行换行,一般为宽度,anchor = 'n') - tkinter Text组件
#加入文本 Text1.insert('insert','欲加入文本') #删除全部 Text1.delete('1.0','end')