Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snapsave-media-downloader

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snapsave-media-downloader - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

24

dist/index.d.ts
declare const snapsave: (url: string) => Promise<{
status: boolean;
data: any[];
msg?: undefined;
success: boolean;
message: string;
status?: undefined;
data?: undefined;
} | {
status: boolean;
msg: any;
message: string;
success?: undefined;
data?: undefined;
} | {
success: boolean;
data: {
media: SnapSaveDownloaderMedia[];
description?: string;
thumbnail?: string;
};
message?: undefined;
status?: undefined;
}>;
interface SnapSaveDownloaderMedia {
resolution?: string;
shouldRender?: boolean;
url: string;
}
export { snapsave };

76

dist/index.js

@@ -0,1 +1,20 @@

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __async = (__this, __arguments, generator) => {

@@ -59,24 +78,24 @@ return new Promise((resolve, reject) => {

return fixEncoding(r);
}, getEncodedSnapApp = function(data) {
return data.split("decodeURIComponent(escape(r))}(")[1].split("))")[0].split(",").map((v) => v.replace(/"/g, "").trim());
}, getDecodedSnapSave = function(data) {
return data.split('getElementById("download-section").innerHTML = "')[1].split('"; document.getElementById("inputData").remove(); ')[0].replace(/\\(\\)?/g, "");
}, decryptSnapSave = function(data) {
return getDecodedSnapSave(decodeSnapApp(getEncodedSnapApp(data)));
}, getEncodedSnapApp = function(data2) {
return data2.split("decodeURIComponent(escape(r))}(")[1].split("))")[0].split(",").map((v) => v.replace(/"/g, "").trim());
}, getDecodedSnapSave = function(data2) {
return data2.split('getElementById("download-section").innerHTML = "')[1].split('"; document.getElementById("inputData").remove(); ')[0].replace(/\\(\\)?/g, "");
}, decryptSnapSave = function(data2) {
return getDecodedSnapSave(decodeSnapApp(getEncodedSnapApp(data2)));
};
const facebookRegex = /(https|http):\/\/(?:(?:www\.facebook\.com\/(?:(?:(?:video\.php)||(?:watch\/))\?v=\d+|(?:[0-9a-zA-Z-_.]+\/(?:(?:video|(post))(?:s))\/)(?:[0-9a-zA-Z-_.]+(?:\/\d+)*)))|(?:fb\.watch\/(?:\w|-)+)|(?:www\.facebook\.com\/reel\/\d+)|(?:www\.facebook\.com\/share\/(v|r)\/[a-zA-Z0-9]+\/)\/?)/;
const facebookRegex = /(https|http):\/\/(?:(?:(?:www\.)?facebook\.com\/(?:(?:(?:video\.php)||(?:watch\/))\?v=\d+|(?:[0-9a-zA-Z-_.]+\/(?:(?:video|(post))(?:s))\/)(?:[0-9a-zA-Z-_.]+(?:\/\d+)*)))|(?:fb\.watch\/(?:\w|-)+)|(?:(?:www\.)?facebook\.com\/reel\/\d+)|(?:(?:www\.)?facebook\.com\/share\/(v|r)\/[a-zA-Z0-9]+\/)\/?)/;
const instagramRegex = /((?:https?:\/\/)?(?:www\.)?instagram\.com\/(?:p|reel|reels|tv|stories)\/([^/?#&]+)).*/g;
const tiktokRegex = /((?:https?:\/\/)?(?:www\.|m\.|vm\.)?tiktok\.com\/(?:@[^/]+\/video\/\d+|v\/\d+|t\/[\w]+|[\w]+)\/?)/g;
const regexList = [facebookRegex, instagramRegex, tiktokRegex];
if (!regexList.some((regex) => url.match(regex))) return { status: false, msg: "Link Url not valid" };
if (!regexList.some((regex) => url.match(regex))) return { success: false, message: "Invalid URL" };
const formData = new URLSearchParams();
formData.append("url", /^(https?:\/\/)(?!www\.)([a-z0-9]+)\.[a-z0-9]+\.[a-z]{2,}/i.test(url) ? url : url.replace(/^(https?:\/\/)/, "$&www."));
const response = yield fetch("https://snapsave.app/action.php?lang=id", {
formData.append("url", /^(https?:\/\/)(?!www\.)[a-z0-9]+/i.test(url) ? url.replace(/^(https?:\/\/)([^./]+\.[^./]+)(\/.*)?$/, "$1www.$2$3") : url);
const response = yield fetch("https://snapsave.app/action.php?lang=en", {
method: "POST",
headers: {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept": "*/*",
"content-type": "application/x-www-form-urlencoded",
"origin": "https://snapsave.app",
"referer": "https://snapsave.app/id",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
"referer": "https://snapsave.app/",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0"
},

@@ -88,6 +107,9 @@ body: formData

const $ = load(decode);
const results = [];
const media = [];
const data = {};
if ($("table.table").length || $("article.media > figure").length) {
const thumbnail = $("article.media > figure").find("img").attr("src");
const description = $("span.video-des").text().trim();
data.thumbnail = thumbnail;
data.description = description;
if ($("table.table").length) {

@@ -102,10 +124,8 @@ $("tbody > tr").each((_, el) => {

if (shouldRender) {
_url = ((_a = /get_progressApi\('(.*?)'\)/.exec(_url || "")) == null ? void 0 : _a[1]) || _url;
_url = "https://snapsave.app" + ((_a = /get_progressApi\('(.*?)'\)/.exec(_url || "")) == null ? void 0 : _a[1]) || _url;
}
results.push({
media.push({
resolution,
thumbnail,
url: _url,
description,
shouldRender
shouldRender,
url: _url
});

@@ -115,6 +135,4 @@ });

let _url = $("a").attr("href") || $("button").attr("onclick");
results.push({
thumbnail,
url: _url,
description
media.push({
url: _url
});

@@ -125,7 +143,7 @@ }

const thumbnail = $(tod).find("img").attr("src");
data.thumbnail = thumbnail;
$("div.download-items__btn").each((_2, ol) => {
let _url = $(ol).find("a").attr("href");
if (!/https?:\/\//.test(_url || "")) _url = `https://snapsave.app${_url}`;
results.push({
thumbnail,
media.push({
url: _url

@@ -136,6 +154,6 @@ });

}
if (!results.length) return { status: false, msg: "Blank data" };
return { status: true, data: results };
if (!media.length) return { status: false, message: "Blank data" };
return { success: true, data: __spreadProps(__spreadValues({}, data), { media }) };
} catch (e) {
return { status: false, msg: e.message };
return { success: false, message: "Something went wrong" };
}

@@ -142,0 +160,0 @@ });

{
"name": "snapsave-media-downloader",
"version": "1.1.0",
"version": "2.0.0",
"description": "Download Instagram, Facebook and TikTok media using snapsave.app downloader",

@@ -41,10 +41,10 @@ "type": "module",

"devDependencies": {
"@stylistic/eslint-plugin": "^2.8.0",
"@types/node": "^22.7.2",
"@typescript-eslint/parser": "^8.7.0",
"@stylistic/eslint-plugin": "^2.10.1",
"@types/node": "^22.9.0",
"@typescript-eslint/parser": "^8.14.0",
"changelogen": "^0.5.7",
"eslint": "^9.11.1",
"eslint": "^9.14.0",
"shx": "^0.3.4",
"tsup": "^8.3.0",
"typescript": "^5.6.2"
"tsup": "^8.3.5",
"typescript": "^5.6.3"
},

@@ -51,0 +51,0 @@ "dependencies": {

@@ -22,13 +22,59 @@ # Snapsave Media Downloader

```
Output:
Output example (Instagram):
```json
{
"status": true,
"data": [
{
"thumbnail": "https://d.rapidcdn.app/d?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL3Njb250ZW50LmNkbmluc3RhZ3JhbS5jb20vdi90NTEuMjkzNTAtMTUvNDM4Nzc5MDI3Xzc3OTg2MTY3MDg3ODYzMl8xNzYzNTk4MzE1MjMwMTk0MzVfbi5qcGc_c3RwPWRzd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mX25jX2NhdD0xMDQmdnM9MTM2MzAwODU5MDk0NjQ0Ml8zMjkyMDg2NDMyJl9uY192cz1IQmtzRlFJWVQybG5YM2h3ZGw5eVpXVnNjMTl3WlhKdFlXNWxiblJmY0hKdlpDOUdOVFEyTWpBNE5rUkROVFJFUkRFd1JUWkZNRUZETTBNNU9UQXlRVEpCTTE5MmFXUmxiMTlrWVhOb2FXNXBkQzV0Y0RRVkFBTElBUUFWQWhnNmNHRnpjM1JvY205MVoyaGZaWFpsY25OMGIzSmxMMGREYVZKS1VsWnhhVXBFVWtFMVZVRkJVR1JXV1U5WlJHOUpZMHRpY1Y5RlFVRkJSaFVDQXNnQkFDZ0FHQUFiQUJVQUFDYmczJTJCYkRuZkQlMkJQeFVDS0FKRE15d1hRQlNwJTJCJTJCZHNpMFFZRW1SaGMyaGZZbUZ6Wld4cGJtVmZNVjkyTVJFQWRmNEhBQSUzRCUzRCZjY2I9OS00Jm9oPTAwX0FZQm5iYnhKa3NzTDViRXlBWHF5aXJRNkdYaVBCYjg1aFJqUkgtdU1KYmlxcUEmb2U9NjczNzVFRUUmX25jX3NpZD0xMGQxM2IiLCJmaWxlbmFtZSI6IlNuYXBzYXZlLmFwcF9GNTQ2MjA4NkRDNTRERDEwRTZFMEFDM0M5OTAyQTJBM192aWRlb19kYXNoaW5pdC5tcDQifQ.xeXnprza8ExA4vbaieWK4fV-pZXxkTjy1jzIoo5p6ms&dl=1"
}
]
}
}
```
Output example (Facebook):
```json
{
"success": true,
"data": {
"thumbnail": "https://scontent-iad3-2.xx.fbcdn.net/v/t51.29350-10/466628901_1297725364716204_4835926798887889488_n.jpg?stp=dst-jpg_s960x960&_nc_cat=103&ccb=1-7&_nc_sid=cb5bf7&_nc_ohc=p2TNk6s12wAQ7kNvgHAknG-&_nc_zt=23&_nc_ht=scontent-iad3-2.xx&_nc_gid=Aj_mZpSR4G44Ek7H6D5dLVD&oh=00_AYDUwINaJj2LowBXRfBjAotl6gbheKe8G5AScHLk4ztgLQ&oe=673B5067",
"description": "...",
"media": [
{
"resolution": "720p (HD)",
"shouldRender": false,
"url": "https://d.rapidcdn.app/d?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL3ZpZGVvLWlhZDMtMi54eC5mYmNkbi5uZXQvbzEvdi90Mi9mMi9tNjkvQVFPVUZuTGQtWFA5M1B2dzA0UmY1d3FQMzJBTWk3dkxBR05JVGhrTG1lN1NoeGdGOV90d2kzb2NIY0lfaXhTX0FSUFIwQnkxZjdEaUhmMUtCenpSRndXTS5tcDQ_c3RyZXh0PTEmX25jX2NhdD0xMDMmX25jX3NpZD04YmY4ZmUmX25jX2h0PXZpZGVvLWlhZDMtMi54eC5mYmNkbi5uZXQmX25jX29oYz1KNFpMaWFMR1hVNFE3a052Z0g2OVhZSyZlZmc9ZXlKMlpXNWpiMlJsWDNSaFp5STZJbmh3ZGw5d2NtOW5jbVZ6YzJsMlpTNUdRVU5GUWs5UFN5NHVRek11TnpJd0xuQnliMmR5WlhOemFYWmxYMmd5TmpRdFltRnphV010WjJWdU1sODNNakJ3SWl3aWVIQjJYMkZ6YzJWMFgybGtJam80TmpnM05EUXlORFV5TkRjM01ETXNJblZ5YkdkbGJsOXpiM1Z5WTJVaU9pSjNkM2NpZlElM0QlM0QmY2NiPTktNCZfbmNfenQ9Mjgmb2g9MDBfQVlEMjVoaE0yTktmYlNYd3ZERUFlaUVJLXpnT0paaU9NQk1EeG4tanJGWl9SZyZvZT02NzNCNzU4MiZkbD0xIiwiZmlsZW5hbWUiOiJTbmFwc2F2ZS5hcHBfLVhQOTNQdncwNFJmNXdxUDMyQU1pN3ZMQUdOSVRoa0xtZTdTaHhnRjlfdHdpM29jSGNJX2l4U19BUlBSMEJ5MWY3RGlIZjFLQnp6UkZ3V00ubXA0In0.D7PvIemQbSJHpANWhaMV1X_JDgoo1ylKCzLIXg49vtU&dl=1"
},
{
"resolution": "360p (SD)",
"shouldRender": false,
"url": "https://d.rapid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5aGRXUnBieUlzSW5acFpHVnZYMmxrSWpveE5qVXdNREUzTURVeU5UTXhNemd6TENKamJHbGxiblJmYm1GdFpTSTZJblZ1YTI1dmQyNGlMQ0p2YVd4ZmRYSnNaMlZ1WDJGd2NGOXBaQ0k2TWpVMk1qZ3hNRFF3TlRVNExDSjFjbXhuWlc1ZmMyOTFjbU5sSWpvaWQzZDNJbjAlM0QmY2NiPTktNCZfbmNfenQ9Mjgmb2g9MDBfQVlCTzJSVVJRS2tkckZmVTRSUmRhNWlQT3NHek9Ib0tYM1FEdXBFa3hJTUt6USZvZT02NzNCNEQ2NCIsImlkIjoiMTY1MDAxNzA1MjUzMTM4MyIsImZpbGVuYW1lIjoiU25hcFNhdmVfQXBwXzE2NTAwMTcwNTI1MzEzODNfMTA4MHAubXA0In0.S-mACnWUv6qBg7NYej2iOV-XgINJ-npNE3tZk_yAsrA"
}
]
}
}
```
Output example (TikTok):
```json
{
"success": true,
"data": {
"thumbnail": "https://p16-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-euttp/240d7e6a213e5cc0ef7dc69277408efc~tplv-tiktokx-cropcenter-q:720:720:q75.jpeg",
"description": "Does anyone else’s cat love doing this️ #RoadTo16Million #Pubity(Andrew Kuzmic via ViralHog)",
"media": [
{
"url": "httpss://snapxcdn.com/v2/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL3YzOS11cy50aWt0b2tjZG4uY29tLzBmMmU2M2EyMDAyMjU5MDBmY2VmYzZlYzA0NmZmZDAwLzY3MzVlNzhlL3ZpZGVvL3Rvcy91c2Vhc3QyYS90b3MtdXNlYXN0MmEtdmUtMDA2OGMwMDEtZXV0dHAvb2NHT2VJOUFUUmRhdkxmSXBlZGU1bWdZeWlMUUVqZ0lwT2dYQUcvP2E9MTIzMyZidGk9YkdSdVpIeHZNWEl4Y201M1ptMWNZRjllYldGemFIRm1PZyUzRCUzRCZjaD0wJmNyPTAmZHI9MCZlcj0wJmNkPTAlN0MwJTdDMCU3QzAmY3Y9MSZicj0xODQ4JmJ0PTkyNCZjcz0wJmRzPTYmZnQ9WHNGYl9xVDBtSXNQRDEyOGtJQkozd1VkWi42U0VlRn5PNSZtaW1lX3R5cGU9dmlkZW9fbXA0JnFzPTAmcmM9T1RRMVpXazVPRHRrWmpvM05EdHBOVUJwTTJRNU0zazVjbmRsZGpNelpqY3pNMEJqTm1KZkxTNDJYell4WVdFeU0xOWlZU05lWlhFMk1tUnphRzVnTFMxa01XTnpjdyUzRCUzRCZ2dnBsPTEmbD0yMDI0MTExNDA2MDUwN0MyNDU1OTU4MDRCMjdGMTE1NDBDJmJ0YWc9ZTAwMGJkMDAwIiwiZmlsZW5hbWUiOiJTbmFwVGlrLmFwcF83NDM2Nzc0MTAzMDE4Njg3Nzc3Lm1wNCIsImV4cCI6MTczMTU2NzkwOH0.mFLlZt9cm9auuB2a5zmHBxp8e8mKIZ46XG6GSiDleRs&dl=1"
}
]
}
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc