UNPKG

1.74 kBMarkdownView Raw
1# zs-extract
2
3Zippyshare download data extractor
4
5[![npm](https://img.shields.io/npm/v/zs-extract.svg)](https://npmjs.com/package/zs-extract)
6[![node](https://img.shields.io/node/v/zs-extract.svg)](https://nodejs.org)
7
8[![dependencies](https://img.shields.io/david/JrMasterModelBuilder/zs-extract.svg)](https://david-dm.org/JrMasterModelBuilder/zs-extract)
9[![size](https://packagephobia.now.sh/badge?p=zs-extract)](https://packagephobia.now.sh/result?p=zs-extract)
10[![downloads](https://img.shields.io/npm/dm/zs-extract.svg)](https://npmcharts.com/compare/zs-extract?minimal=true)
11
12[![Build Status](https://github.com/JrMasterModelBuilder/zs-extract/workflows/main/badge.svg?branch=master)](https://github.com/JrMasterModelBuilder/zs-extract/actions?query=workflow%3Amain+branch%3Amaster)
13
14# Overview
15
16This module simplifies extracting download info from a Zippyshare link. Instead of parsing their ever-changing JavaScript for the variables to compute the download URL, this module uses Node's VM functionality to safely emulate a browser in a sandboxed environment, making it much more resilient to changes in the obfuscated download link generation code.
17
18# Usage
19
20```js
21import zsExtract from 'zs-extract';
22
23const info = await zsExtract.extract(
24 'https://www85.zippyshare.com/v/eE67Qy6f/file.html'
25);
26
27console.log(info); // { download: 'https://www85.zippyshare.com/d/eE67Qy6f/816592/jmmb%20avatar.png', filename: 'jmmb avatar.png' }
28```
29
30# Bugs
31
32If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
33
34# License
35
36Copyright (c) 2019-2021 JrMasterModelBuilder
37
38Licensed under the Mozilla Public License, v. 2.0.
39
40If this license does not work for you, feel free to contact me.