Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Denied #315

Open
UmarRatedSol opened this issue Sep 5, 2023 · 0 comments
Open

Access Denied #315

UmarRatedSol opened this issue Sep 5, 2023 · 0 comments

Comments

@UmarRatedSol
Copy link

UmarRatedSol commented Sep 5, 2023

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:

    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 😉

asyncio.run(main())

is there anyone who can help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant