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

抖音定时发布好像不太行了 #17

Closed
lurongkang123 opened this issue Jun 17, 2024 · 4 comments
Closed

抖音定时发布好像不太行了 #17

lurongkang123 opened this issue Jun 17, 2024 · 4 comments

Comments

@lurongkang123
Copy link

抖音定时发布好像不太行了,清空输入框之后会自动填,导致后面填的值无效

@dreammis
Copy link
Owner

我试了下是ok的,我把去除地理位置的部分给删掉了。

@z2p
Copy link

z2p commented Jun 17, 2024

我这好像也是不行,我改了一下代码,大体的逻辑是:先将光标移动到最后,向前删除15次,保留2,因为全清空会导致恢复,然后填充024-xx-xx xx:xx
因为整个项目我都做了改造,所以就不贴全部代码了,大家直接套应该会出问题,思路可供参考

await page.locator('.semi-input[placeholder="日期和时间"]').click()
await page.keyboard.press("End")
for i in range(15):
await page.keyboard.press("Backspace",delay=50)
await page.keyboard.type(publish_date[1:],delay=100)
await page.keyboard.press("Enter")

@dreammis
Copy link
Owner

是不是我们浏览器不一样,我是conf设置了本地的chrome。你们也是这样吗?

@dreammis
Copy link
Owner

未见后续反馈

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

3 participants