Skip to content

JavaScript library to crawl and download Snap Lenses from lens.snapchat.com with ease.

License

Notifications You must be signed in to change notification settings

ptrumpis/snap-lens-web-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub License GitHub Release Date GitHub Release GitHub Commits GitHub stars GitHub forks

👻 Snap Lens Web Crawler

JavaScript library to crawl and download Snap Lenses from lens.snapchat.com with ease.

⚠️ Requirements

  • cheerio
  • node-fetch

🚀 Usage

Command Line test usage

Uncomment code examples in src/index.js to get started.

npm start

Example usage in JavaScript project

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');

ℹ️ Info

The return values are Snap Camera compatible object(s).

This crawler is a dependency of Snap Camera Server

❤️ Support

If you like my work and want to support me, feel free to invite me for a virtual coffee ☕

Ko-fi Buy me a Coffee Liberapay PayPal

You can also become my GitHub Sponsor

Sponsor


© 2023-2025 Patrick Trumpis