Mika Scraper / getStickersFromPack
Function: getStickersFromPack()
getStickersFromPack(
packUrl
):Promise
<string
[]>
Defined in: src/sticker/sticker-pack.ts:42
Scrapes all sticker image links from a specified sticker pack page.
Parameters
packUrl
string
The full URL of the sticker pack from which to scrape image links.
Returns
Promise
<string
[]>
A promise that resolves to an array of direct image URLs in PNG or WebP format.
Example
const packUrl = "https://example.com/sticker-pack-page";
getStickersFromPack(packUrl)
.then(urls => {
console.log("Sticker URLs:", urls);
})
.catch(error => {
console.error("Error fetching sticker URLs:", error);
});
Last updated on