UNPKG

1.57 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[![size](https://packagephobia.now.sh/badge?p=zs-extract)](https://packagephobia.now.sh/result?p=zs-extract)
9[![downloads](https://img.shields.io/npm/dm/zs-extract.svg)](https://npmcharts.com/compare/zs-extract?minimal=true)
10
11[![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)
12
13# Overview
14
15This 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.
16
17# Usage
18
19```js
20import {extract} from 'zs-extract';
21
22console.log(await extract('https://www83.zippyshare.com/v/yakMuCxe/file.html'));
23```
24
25```
26{
27 download: 'https://www83.zippyshare.com/d/yakMuCxe/12345/jmmb%20avatar.png',
28 filename: 'jmmb avatar.png'
29}
30```
31
32# Bugs
33
34If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
35
36# License
37
38Copyright (c) 2019-2021 JrMasterModelBuilder
39
40Licensed under the Mozilla Public License, v. 2.0.
41
42If this license does not work for you, feel free to contact me.