JavaScript library to crawl and download Snap Lenses from lens.snapchat.com with ease.
- cheerio
- node-fetch
Uncomment code examples in src/index.js
to get started.
npm start
import LensWebCrawler from "./src/crawler.js";
const crawler = new LensWebCrawler();
// examples
const topLenses = await crawler.getTopLenses();
const singeLens = await crawler.getLensByHash('32_CHAR_UUID');
const creatorLenses = await crawler.getLensesByCreator('CREATOR_SLUG');
const userProfileLenses = await crawler.getUserProfileLenses('USERNAME');
const searchResults = await crawler.searchLenses('SEARCH TERM');
The return values are Snap Camera compatible object(s).
This crawler is a dependency of Snap Camera Server
If you like my work and want to support me, feel free to invite me for a virtual coffee ☕
You can also become my GitHub Sponsor
© 2023-2025 Patrick Trumpis