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

V7.0.0 - feat: New Playlist Class, fixes bot detection, update docstring #1215

Merged
merged 8 commits into from
Jan 21, 2025

Conversation

davidteather
Copy link
Owner

@davidteather davidteather commented Jan 21, 2025

Happy TikTok will it or will it not get banned everyone I'm back for the experience 🎉 🥳 🎉

Breaking Change

Fixes

Chores

A merged pytest result of of the CI and locally on webkit with mstoken without proxy

tests/test_comments.py .                                                                                  [  4%]
tests/test_hashtag.py ....                                                                                [ 23%]
tests/test_integration.py F                                                                               [ 28%]
tests/test_playlist.py F.                                                                                 [ 38%]
tests/test_search.py .s                                                                                   [ 47%]
tests/test_sound.py F.                                                                                    [ 57%]
tests/test_trending.py F                                                                                  [ 61%]
tests/test_user.py .F..                                                                                   [ 80%]
tests/test_video.py ..s.                                                                                  

@davidteather davidteather merged commit e6310be into main Jan 21, 2025
0 of 2 checks passed
@davidteather davidteather deleted the v7.0.0 branch January 21, 2025 04:46

await page.goto(url)
await page.goto(url) # hack: tiktok blocks first request not sure why, likely bot detection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😒

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiktok

Copy link
Contributor

@anarchopythonista anarchopythonista Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still can't believe that hack actually works. Makes me wonder how much bot traffic dropping the first request mitigates on their end. When I observed the two requests in playwright(webkit), the first request gave the desktop interface while the second request gave the mobile interface.

If this sort of cat-and-mouse keeps up, v8 of your api might have a third await page.goto(url) 😂 I'll at least be trying that first when they start blocking again.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's kinda wild. There are TikTok engs who watch / star the repo so I wouldn't be totally surprised if they use the project as a test to make sure their bot detection is working haha.
I noticed hitting refresh made tiktok load and then tried that out and worked 😭

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

Successfully merging this pull request may close these issues.

4 participants