-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
|
||
await page.goto(url) | ||
await page.goto(url) # hack: tiktok blocks first request not sure why, likely bot detection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiktok
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 😭
Happy TikTok will it or will it not get banned everyone I'm back for the experience 🎉 🥳 🎉
Breaking Change
user().info -> Iterator[dict]
nowuser().info -> Iterator[Playlist]
Fixes
Chores
create_session
docstring Update docstring for create_session() #1202 @anarchopythonistaA merged pytest result of of the CI and locally on webkit with mstoken without proxy