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

[Help] Something went wrong Sorry about that! Please try again later. #14

Open
Person-Account opened this issue Dec 21, 2024 · 0 comments

Comments

@Person-Account
Copy link

Person-Account commented Dec 21, 2024

image

Other than rotating IP's how do can I avoid that? Any ideas? (I don't use since its not in my budget sadly.)

Waiting works but I want to do multiple users with 8 second max interval ; not a lot so I don't get network blocked. (Waiting has to be random, not a predefined wait time unfortunately)

I would like to just get a key from the JSONable dictionary so I can manually do stuff. Please help.

import asyncio

from pytok.tiktok import PyTok

async def main():
    async with PyTok() as api:
        user = api.user(username="therock")
        user_data = await user.info()

        videos = []
        async for video in user.videos(count=1):
            video_data = await video.info()
            videos.append(video_data)

Error:

AssertionError: Locator expected to be visible
Actual value: None 
Call log:
LocatorAssertions.to_be_visible with timeout 30000ms
waiting for locator("[data-e2e=user-post-item]").first.or_(locator("Rotate the shapes").or_(get_by_text("Verify to continue:", exact=True)).or_(get_by_text("Click on the shapes with the same size", exact=True)).or_(get_by_text("Drag the slider to fit the puzzle", exact=True).first)).or_(get_by_text("Couldn't find this account", exact=True)).or_(get_by_text("No content", exact=True)).or_(get_by_text("This account is private", exact=True))
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