3.14.1 • Published 2 months ago

nurlresolver v3.14.1

Weekly downloads
63
License
MIT
Repository
github
Last release
2 months ago

nurlresolver

Streamline your download experience with this Node.js package designed to extract direct, hassle-free downloadable links from various file-sharing websites. Say goodbye to multiple clicks and pesky ads, ensuring a seamless and efficient downloading process.

license npm latest package npm downloads github forks github stars

Live Demo

Warning: This package is native ESM and no longer provides a CommonJS export. If your project uses CommonJS, you will have to convert to ESM or use the dynamic import() function. Please don't open issues for questions regarding CommonJS / ESM.

Installation

npm install nurlresolver

Usage: ES6 usage

import nUrlResolver from 'nurlresolver';
const results = await nUrlResolver.resolve(linkToResolve);

const linkToResolve = 'https://cloud.mail.ru/public/abcd/sAmPlE';
const results = await nUrlResolver.resolve(linkToResolve);

Output

[  
  {
    link: 'https://cloclo3.cldmail.ru/public/get/generatedlink/no/FileName.extension',
    title: 'FileName.extension',
    isPlayable: true,
    parent: 'https://cloud.mail.ru/public/abcd/sAmPlE',
    speedRank: 65 //0-100 better speed means higher rank
  }
]

Resolve link recursively:

const results = await nUrlResolver.resolveRecursive(link);
/*
This is going to resolve the final playback links.
Schema representation is same as above result.
The only difference is it recursively resolve all the links as they get found.
*/

Headers Support

In some of the sharing sites, it's required to send some header information back. e.g. Referer is required in some sites or if a link generated from an ip which is only accessible from that ip (in this case the xforward header is added in the result output so that same header can be sent to the same site later on.)

Advance Options

options

NameTypeDescription
extractMetaInformationbooleaninstruct the resolver to extract contenttype, lastmodifieddate and size of the file.
timeoutnumbertimeout in seconds
googleDrive.apiKeystringoptional api key to avoid anonymous access. Defaults to empty to allow anonymous access.
customResolversarraycustom resolvers you can inject for resolving urls. Refer to app.tests for implementation samples
const results = await nUrlResolver.resolve(linkToResolve, {
    extractMetaInformation: true,
    timeout: 30 //returns the results at maximum after 30 seconds.
});

Output

[
  {
    "link": "http://www5d.filecdn.pw/dkske911881kkk?download_token=SOME_TOKEN_VALUE",
    "title": "FILE.EXTENSION",
    "isPlayable": true,
    "headers": {
      "X-Real-IP": "XX.YY.ZZ.AA"
    },
    "parent": "https://dlfiles.online/dkske911881kkk",
    "speedRank": 55,
    "size": "900163682",
    "lastModified": "Wed, 21 Sep 2019 12:09:06 GMT",
    "contentType": "application/octet-stream"
  }
]

Supported sites

  • Google Drive
  • CloudMailRu
  • MegaupNet
  • Dlfiles
  • Doodvideo
  • Indishare
  • Racaty
  • uploadraja
  • ZuploadMe
  • Yourupload
  • etc. Refer here for complete implementation

Try it Online https://repl.it/repls/HandsomeLightgraySmalltalk

Testing

npm run test

License

MIT

3.14.1

2 months ago

3.14.0

3 months ago

3.13.0

3 months ago

3.12.1

5 months ago

3.12.0

5 months ago

3.11.4

5 months ago

3.11.3

5 months ago

3.11.5

5 months ago

3.10.2

6 months ago

3.11.0

6 months ago

3.11.2

5 months ago

3.11.1

6 months ago

3.9.0

8 months ago

3.10.0

8 months ago

3.7.2

8 months ago

3.2.1

11 months ago

3.2.0

12 months ago

3.6.0

10 months ago

3.1.3

12 months ago

3.1.2

12 months ago

3.1.1

12 months ago

3.1.0

12 months ago

3.5.0

10 months ago

3.1.4

12 months ago

3.4.0

10 months ago

3.8.0

8 months ago

3.4.3

10 months ago

3.4.2

10 months ago

3.4.1

10 months ago

3.3.1

11 months ago

3.3.0

11 months ago

3.7.1

8 months ago

3.7.0

8 months ago

3.3.2

11 months ago

3.0.3

1 year ago

3.0.2

1 year ago

2.19.2

1 year ago

2.19.0

1 year ago

2.15.2

1 year ago

2.15.0

1 year ago

2.15.1

1 year ago

2.18.1

1 year ago

2.18.0

1 year ago

3.0.1

1 year ago

2.17.0

1 year ago

3.0.0

1 year ago

2.16.1

1 year ago

2.16.2

1 year ago

2.14.0

1 year ago

2.13.4

1 year ago

2.13.5

1 year ago

2.13.2

1 year ago

2.13.3

1 year ago

2.13.0

1 year ago

2.13.1

1 year ago

2.12.0

1 year ago

2.12.1

1 year ago

2.12.2

1 year ago

2.11.0

2 years ago

2.9.6

2 years ago

2.9.5

2 years ago

2.10.0

2 years ago

2.9.4

2 years ago

2.9.3

2 years ago

2.4.1

2 years ago

2.4.2

2 years ago

2.8.1

2 years ago

2.9.2

2 years ago

2.9.1

2 years ago

2.3.2

2 years ago

2.7.1

2 years ago

2.6.1

2 years ago

2.6.3

2 years ago

2.6.2

2 years ago

2.7.3

2 years ago

2.5.1

2 years ago

2.3.1-rc1

2 years ago

2.3.1

2 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.18.1

3 years ago

1.17.2

3 years ago

1.14.1

3 years ago

1.16.1

3 years ago

1.17.1

3 years ago

1.13.5

3 years ago

1.15.2

3 years ago

1.15.1

3 years ago

1.13.4

3 years ago

1.13.2

3 years ago

1.13.3

3 years ago

1.12.3

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.11.3

4 years ago

1.11.2

4 years ago

1.10.2

4 years ago

1.11.1

4 years ago

1.9.1

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0-rc2

4 years ago

1.4.0-rc1

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.2.4

4 years ago

1.3.1

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.1

4 years ago

0.2.3-rc

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1-patch05

4 years ago

0.0.1-patch04

4 years ago

0.0.1-patch03

4 years ago

0.0.1-patch02

4 years ago

0.0.1-patch01

4 years ago

0.0.1

4 years ago