trending_items = await bot.trending(amount=50)
# print('feed lists ---->', trending_items)
i = 0
for item in trending_items:
i += 1
print('item--->',i , item)
# 🎧 get music title, cover, link, author name..
print("Music title: ", item.music.title)
# #️⃣ print all tag's title of video
print('tage: ',[tag.title for tag in item.challenges])
# 📈 check all video stats
print("Comments: ", item.stats.comments)
print("Plays: ", item.stats.plays)
print("Shares: ", item.stats.shares)
print("Likes: ", item.stats.likes)
print("Video URL: ", item.video.play_addr)
# and many other things 😉
Videos and other data is being scrapped successfully but when I open that video linke it says
Access Denied You don't have permission to access "http://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0068/o46mEDnhRJPNlC7bYQQ2iEv5IAhkWKz47eTBfB/?" on this server. Reference #18.345d673b.1693899451.3415bd0
scrapped video link that I got and opened in brwoser is
https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-pve-0068/o46mEDnhRJPNlC7bYQQ2iEv5IAhkWKz47eTBfB/?a=1988&ch=0&cr=3&dr=0&lr=unwatermarked&cd=0%7C0%7C0%7C3&cv=1&br=652&bt=326&cs=0&ds=6&ft=3.u4FZkf0PD126gdZt3wUnxN5SHEg9N1OUlc&mime_type=video_mp4&qs=4&rc=aHIxaDFybndmOmZpNDY4ZWRnNDQ3NTQ4ZEBpajl0bWQ6ZmlwbTMzNzczM0BvYF90aHFmOiMzYzQyLWIxXy8xLzAtNWAuYSNhX25kcjQwLmdgLS1kMTZzcw%3D%3D&btag=e00090000&expire=1693921121&l=202309050737053BFC0196409E4C12B83E&ply_type=2&policy=2&signature=2f00c546fca557225f58e8d37c15bc89&tk=tt_chain_token
script is
import asyncio
from tiktokpy import TikTokPy
async def main(): async with TikTokPy() as bot:
asyncio.run(main())
is there anyone who can help me?