Answers for "how to like posts on instagram js"

0

how to like posts on instagram js

let likes = 0;
setInterval(() => {
    const heart = document.querySelector('svg[aria-label="Like"]').parentNode;
    const arrow = document.querySelector('a.coreSpriteRightPaginationArrow');
    if (heart) {
        heart.click()
        likes++;
        console.log(`You've liked ${likes} post(s)`);
    }
    arrow.click();
}, 5000);
Posted by: Guest on August-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language