@ptrumpis/snap-lens-web-crawler
Version:
Crawl and download Snap Lenses from *lens.snapchat.com* with ease.
55 lines (40 loc) ⢠2.85 kB
Markdown
[](https://github.com/ptrumpis/snap-lens-web-crawler?tab=GPL-3.0-1-ov-file)
[](https://github.com/ptrumpis/snap-lens-web-crawler/releases/latest)
[](https://github.com/ptrumpis/snap-lens-web-crawler/releases/latest)
[](https://github.com/ptrumpis/snap-lens-web-crawler/commits)
[](https://github.com/ptrumpis/snap-lens-web-crawler/stargazers)
[](https://github.com/ptrumpis/snap-lens-web-crawler/forks)
# š» Snap Lens Web Crawler
JavaScript library to crawl and download Snap Lenses from *lens.snapchat.com* with ease.
## š Usage
### npm
```shell
npm i @ptrumpis/snap-lens-web-crawler
```
### JavaScript
Example:
```javascript
import LensWebCrawler from "@ptrumpis/snap-lens-web-crawler/crawler";
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
### Dependents
This package is a dependency of:
[š» Snap Camera Server](https://github.com/ptrumpis/snap-camera-server)
The return values are Snap Camera / Snap Camera Server compatible object(s).
## ā¤ļø Support
If you like my work and want to support me, feel free to invite me for a virtual coffee ā
[](https://ko-fi.com/ptrumpis)
[](https://www.buymeacoffee.com/ptrumpis)
[](https://liberapay.com/ptrumpis/)
[](https://www.paypal.com/donate/?hosted_button_id=D2T92FVZAE65L)
You can also become my GitHub Sponsor
[](https://github.com/sponsors/ptrumpis)
---
Ā© 2023-2025 [Patrick Trumpis](https://github.com/ptrumpis)