Socket
Book a DemoInstallSign in
Socket

media-extractor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-extractor

Find the hidden media URLs that image sites like Tenor or Giphy hide inside their html.

1.1.3
latest
npmnpm
Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

media-extractor

Find the hidden media URLs that image sites like Tenor or Giphy hide inside their html.

- https://tenor.com/NCEt.gif Is that a .jif file?

- Haha no, it's obviously a .gif file

Actually... it's an html file. Yes, have fun saving that in a database and trying to figure out why your images don't load.

Usage

npm install media-extractor

const { resolve } = require("media-extractor");

const link =
  "https://tenor.com/view/holo-spice-and-wolf-anime-cartoon-japanese-gif-9404303";

resolve(link).then(response => {
  console.log(response);
  // https://media1.tenor.com/images/326f7e77b5562ce6c9aa90ed77799017/tenor.gif
});

These links can be generated without an http request:

  • giphy.com/gifs

These links cannot be generated without an http request:

  • tenor.com/view
  • tenor.com/*.gif

FAQs

Package last updated on 12 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.