Git Product home page Git Product logo

Comments (3)

anhntsi avatar anhntsi commented on June 16, 2024 3

I have same problem. @sudoguy Do you have solution for it?
Thanks for great project.

from tiktokpy.

mikebgrep avatar mikebgrep commented on June 16, 2024

I think the problem is due to cookie notification in TikTok. It's block the action

from tiktokpy.

t0bse avatar t0bse commented on June 16, 2024

@mikebgrep @anhntsi @sudoguy i got a solution.
first step was changing this in settings.toml: HEADLESS = false
now i could watch what's going on ... chrome is starting to search the trends and the bot will then go to the userpages to follow.
here's the point; chrome is switching to german website, even if i changed the default language in chromium, it was my language again after the bot started chromium the next time.
so i did it the easiest way and deleted my language pak-file in
"C:\Users\xxx\AppData\Local\ms-playwright\chromium-1041\chrome-win\locales"

now the bot was working and the follow button was pressed.

next problem is the tiktok captcha coming to my screen every X times, so i changed the following line in tiktokpy\client\user.py

from
page: Page = await self.client.new_page(blocked_resources=["image", "media", "font"])
to
page: Page = await self.client.new_page(blocked_resources=["media", "font"])

hope i could help a bit 👍

from tiktokpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.