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
// HOW TO USE: | |
// INSPECT THE PAGE AND CLUE THIS CODE AND WAIT UNTIL ITS DONE! | |
function getTotalViews() { | |
const likes = document.querySelector('[data-e2e="likes-count"]').textContent; | |
const profile = document.querySelector('[data-e2e="user-title"]').textContent; | |
const followers = document.querySelector('[data-e2e="followers-count"]').textContent; | |
const totals = [...document.querySelectorAll('.video-count')].map(x=> x.textContent) | |
let views = 0; | |
totals.map(total=> { |
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
// HOW TO USE: SCROLL TIKTOK PAGE UNTIL THE END. AFTER ALL VIDEOS ARE AT THE SCREEN, | |
// INSPECT THE PAGE AND CLUE THIS CODE | |
function getTotalViews() { | |
const likes = document.querySelector('[data-e2e="likes-count"]').textContent; | |
const profile = document.querySelector('[data-e2e="user-title"]').textContent; | |
const followers = document.querySelector('[data-e2e="followers-count"]').textContent; | |
const totals = [...document.querySelectorAll('.video-count')].map(x=> x.textContent) | |
let views = 0; |