Created
August 27, 2025 21:31
-
-
Save adrianhorning08/d67181a904c80c0a27146f1735e8472c to your computer and use it in GitHub Desktop.
TikTok Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const puzzleImage = await page.$("#captcha-verify-image"); | |
| const puzzleImageUrl = await puzzleImage.evaluate((el) => el.src); | |
| console.log("puzzleImageUrl", puzzleImageUrl); | |
| const pieceImage = await page.$(".captcha_verify_img_slide"); | |
| const pieceImageUrl = await pieceImage.evaluate((el) => el.src); | |
| console.log("pieceImageUrl", pieceImageUrl); | |
| const elementHandle = await page.$(".captcha_verify_img--wrapper"); | |
| const box = await elementHandle.boundingBox(); | |
| const puzzleWidth = box.width; | |
| // const puzzleWidth = 340; | |
| console.log("puzzleWidth", puzzleWidth); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment