tiktokpy icon indicating copy to clipboard operation
tiktokpy copied to clipboard

Bot need update didn`t do the actions

Open mikebgrep opened this issue 3 years ago • 2 comments

Bot run but don`t do the actions

2022-04-01 14:42:45 | INFO | 📹 Found 3 videos 2022-04-01 14:42:45 | INFO | 🧭 Going to @ogisimeonov's video 7053820857914903814 page for like 2022-04-01 14:42:52 | INFO | 👍 @ogisimeonov's video 7053820857914903814 liked 2022-04-01 14:42:52 | INFO | 🧭 Going to @ogisimeonov's page for following 2022-04-01 14:43:00 | INFO | ➕ @ogisimeonov followed 2022-04-01 14:43:00 | INFO | 🧭 Going to @stoyan_yordanov1991's video 7074817726203596037 page for like 2022-04-01 14:43:11 | INFO | 👍 @stoyan_yordanov1991's video 7074817726203596037 liked 2022-04-01 14:43:11 | INFO | 🧭 Going to @stoyan_yordanov1991's page for following 2022-04-01 14:43:20 | INFO | ➕ @stoyan_yordanov1991 followed 2022-04-01 14:43:20 | INFO | 🧭 Going to @lilytihova's video 7051539740046249222 page for like 2022-04-01 14:43:26 | INFO | 👍 @lilytihova's video 7051539740046249222 liked 2022-04-01 14:43:26 | INFO | 🧭 Going to @lilytihova's page for following 2022-04-01 14:43:33 | INFO | ➕ @lilytihova followed 2022-04-01 14:43:33 | INFO | ✋ TikTokPy finished working. Session lasted: a minute

This is the log when i observe in tiktok no actions are executed. Probably need update I try to look around in the code but I am 0 with asyco and not very good at python.So if the owner of the repo or some contributor have a time to update the bot will be great.

mikebgrep avatar Apr 01 '22 19:04 mikebgrep

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

mikebgrep avatar Apr 03 '22 11:04 mikebgrep

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

anhntsi avatar Apr 21 '22 14:04 anhntsi

@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 👍

t0bse avatar Dec 23 '22 19:12 t0bse