Created
September 24, 2018 04:53
-
-
Save stevenhao/e12ddee6afe7cb4b2844b5becf5402e7 to your computer and use it in GitHub Desktop.
Messenger Stickers Scraper
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
// get fb sticker urls | |
// open the sticker view and then run this script | |
stickers = Array.from(document.querySelectorAll('.uiGrid._51mz._5f0n ._5r8i')) | |
urls = stickers.map(el => el.style.backgroundImage).map(s => s.substring(5, s.length - 2)) | |
console.log(JSON.stringify(urls, 2, '\n')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment