像tiktokapi对象那样获得错误,没有属性get_video_no_watermark
我正在使用tiktok库下载没有水印的视频并将其保存在我的笔记本电脑上,但是脚本会产生这样的错误:
attributeError:'tiktokapi'对象没有属性'get_video_no_watermark'
是否有任何方法可以解决此问题,或者我们可以通过使用Python脚本获得替代方法来下载视频。
url = 'https://www.tiktok.com/@wigcenter/video/7090914793049034010'
from TikTokApi import TikTokApi
api = TikTokApi()
video_url = 'https://www.tiktok.com/@wigcenter/video/7090914793049034010'
data = api.get_Video_No_Watermark(video_url, return_bytes=1, language='en', proxy=None, custom_verifyFp="")
with open("tiktok.mp4", 'wb') as output:
output.write(data)
tiktopapi版本: tiktokapi-5.1.1
I am using Tiktok library to download the video without watermark and save it on my laptop, but script generates an error like this:
AttributeError: 'TikTokApi' object has no attribute 'get_Video_No_Watermark'
Is there any way that we can resolve this issue or can we get an alternate way to download the video without watermark using python script.
url = 'https://www.tiktok.com/@wigcenter/video/7090914793049034010'
from TikTokApi import TikTokApi
api = TikTokApi()
video_url = 'https://www.tiktok.com/@wigcenter/video/7090914793049034010'
data = api.get_Video_No_Watermark(video_url, return_bytes=1, language='en', proxy=None, custom_verifyFp="")
with open("tiktok.mp4", 'wb') as output:
output.write(data)
TikTopApi Version: TikTokApi-5.1.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误意味着Python-Playwright或Selenium无法正确启动。我所做的是
1.
检查您的Chrome右上角的版本 - >帮助 - >关于Google Chrome
2.
从Chromedriver下载Chromedriver
3.
让您的API查找驱动程序
This error means that python-playwright or selenium is not launching correctly. What I did is
1.
Check the version of your chrome Right upper corner -> help -> About Google Chrome
2.
Download the chromedriver from chromedriver
3.
let your API find the driver