1 | # zs-extract
|
2 |
|
3 | Zippyshare 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 |
|
16 | This 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
|
21 | import zsExtract from 'zs-extract';
|
22 |
|
23 | const info = await zsExtract.extract(
|
24 | 'https://www85.zippyshare.com/v/eE67Qy6f/file.html'
|
25 | );
|
26 |
|
27 | console.log(info); // { download: 'https://www85.zippyshare.com/d/eE67Qy6f/816592/jmmb%20avatar.png', filename: 'jmmb avatar.png' }
|
28 | ```
|
29 |
|
30 | # Bugs
|
31 |
|
32 | If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
|
33 |
|
34 | # License
|
35 |
|
36 | Copyright (c) 2019-2021 JrMasterModelBuilder
|
37 |
|
38 | Licensed under the Mozilla Public License, v. 2.0.
|
39 |
|
40 | If this license does not work for you, feel free to contact me.
|