📜  如何在 instagram js 上点赞 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:20.340000             🧑  作者: Mango

代码示例1
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);