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://david-dm.org/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 | [![travis-ci](https://travis-ci.org/JrMasterModelBuilder/zs-extract.svg?branch=master)](https://travis-ci.org/JrMasterModelBuilder/zs-extract)
|
13 |
|
14 |
|
15 | # Overview
|
16 |
|
17 | 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.
|
18 |
|
19 |
|
20 | # Usage
|
21 |
|
22 | ```js
|
23 | import zsExtract from 'zs-extract';
|
24 |
|
25 | const info = await zsExtract.extract('https://www109.zippyshare.com/v/EXfrFTJo/file.html');
|
26 |
|
27 | console.log(info); // { download: 'https://www109.zippyshare.com/d/EXfrFTJo/816592/jmmb%20avatar.png', filename: 'jmmb avatar.png' }
|
28 | ```
|
29 |
|
30 |
|
31 | # Bugs
|
32 |
|
33 | If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
|
34 |
|
35 |
|
36 | # License
|
37 |
|
38 | Copyright (c) 2019-2020 JrMasterModelBuilder
|
39 |
|
40 | Licensed under the Mozilla Public License, v. 2.0.
|
41 |
|
42 | If this license does not work for you, feel free to contact me.
|