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

Following users #294

Open
TeoVibe opened this issue Jan 18, 2023 · 3 comments
Open

Following users #294

TeoVibe opened this issue Jan 18, 2023 · 3 comments

Comments

@TeoVibe
Copy link

TeoVibe commented Jan 18, 2023

Hi!

Thank you for your effort on this project, it seems amazing!

Can anybody confirm that this is working on their end? I ran the quicklogin, logged in then the driver closed and I got a RuntimeError('Event loop is closed') in the terminal.

Afterwards with the quickstart.py it seems to pull the trending posts and in the terminal it shows its following users but that does not seem to be actually happening. I believe it authenticated fine so I am not certain the previous error is relevant, when I ran the same script without logging in it returned a different terminal output.

I'll also dive into this but I'd like to confirm the issue isn't something with my local configuration. Thanks in advance!

@zhivko0
Copy link

zhivko0 commented Jan 19, 2023

Hi, no its not only on your side, after some testing it seems that when the bot open the browser session it is getting stopped by captcha. You can see this if you set to "false" headless option in settings.toml file. I'm trying to work it out but nothing for now.

@JarroLightF
Copy link

JarroLightF commented Jan 21, 2023

I've been using this for my degree thesis and for now this is working for me 1/3 of the times.

I wrote that inside the Trending class inside trending.py.
It's spaghetti code and I have a week left for my thesis sorry I can't explain much further but this should work like twice a day, I think after that they ask you to insert captcha anyway (But still it resets daily, or maybe when the IP changes). Also I tried with QR code login but it freezes aand won't go any further.

You have to insert your login email where I put YOUR EMAIL and your password in YOUR PASSWORD. sorry for the spaghet

    await self.client.screenshot("trending.png", page)
    await page.click('button[type="button"]')
    await self.client.screenshot("trending.png", page)
    scroll_command = "document.querySelector('{selector}').scrollIntoView();"
    await page.locator('text=Use phone / email / username').click();
    await self.client.screenshot("trending.png", page)
    await page.click('a[href="/login/phone-or-email/email"]')
    await self.client.screenshot("trending.png", page)
    await page.type("input[class='tiktok-11to27l-InputContainer etcs7ny1']","YOUR EMAIL")
    await self.client.screenshot("trending.png", page)
    await page.type("input[class='tiktok-wv3bkt-InputContainer etcs7ny1']","YOUR PASSWORD")
    await self.client.screenshot("trending.png", page)
    await page.click('button[class="e1w6iovg0 tiktok-cjigsp-Button-StyledButton ehk74z00"]')
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    input("GO")

@Leeiiiiiii
Copy link

I've been using this for my degree thesis and for now this is working for me 1/3 of the times.

I wrote that inside the Trending class inside trending.py. It's spaghetti code and I have a week left for my thesis sorry I can't explain much further but this should work like twice a day, I think after that they ask you to insert captcha anyway (But still it resets daily, or maybe when the IP changes). Also I tried with QR code login but it freezes aand won't go any further.

You have to insert your login email where I put YOUR EMAIL and your password in YOUR PASSWORD. sorry for the spaghet

    await self.client.screenshot("trending.png", page)
    await page.click('button[type="button"]')
    await self.client.screenshot("trending.png", page)
    scroll_command = "document.querySelector('{selector}').scrollIntoView();"
    await page.locator('text=Use phone / email / username').click();
    await self.client.screenshot("trending.png", page)
    await page.click('a[href="/login/phone-or-email/email"]')
    await self.client.screenshot("trending.png", page)
    await page.type("input[class='tiktok-11to27l-InputContainer etcs7ny1']","YOUR EMAIL")
    await self.client.screenshot("trending.png", page)
    await page.type("input[class='tiktok-wv3bkt-InputContainer etcs7ny1']","YOUR PASSWORD")
    await self.client.screenshot("trending.png", page)
    await page.click('button[class="e1w6iovg0 tiktok-cjigsp-Button-StyledButton ehk74z00"]')
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    time.sleep(5)
    await self.client.screenshot("trending.png", page)
    input("GO")

hello! where can I

Hi, no its not only on your side, after some testing it seems that when the bot open the browser session it is getting stopped by captcha. You can see this if you set to "false" headless option in settings.toml file. I'm trying to work it out but nothing for now.

any update to this?

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

4 participants