像tiktokapi对象那样获得错误,没有属性get_video_no_watermark

发布于 2025-02-08 16:39:54 字数 645 浏览 2 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼中杀气 2025-02-15 16:39:54

此错误意味着Python-Playwright或Selenium无法正确启动。我所做的是

1. 检查您的Chrome右上角的版本 - >帮助 - >关于Google Chrome

2. 从Chromedriver下载Chromedriver

3. 让您的API查找驱动程序

api = TikTokApi.get_instance(use_selenium=True, executablePath="/path/to/chromedriver")

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

api = TikTokApi.get_instance(use_selenium=True, executablePath="/path/to/chromedriver")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文