JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 127
  • Score
    100M100P100Q83110F
  • License ISC

Scraper for download Video & Image from Twitter

Package Exports

  • twitter-downloader
  • twitter-downloader/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (twitter-downloader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Twitter Downloader

  • Used to download video & image from Twitter
  • No login or password are required

Installation

  • twitter-downloader requires Node.js v10+ to run.

Install from NPM

npm install twitter-downloader

Install from YARN

yarn add twitter-downloader

Usage

const { TwitterDL } = require("twitter-downloader");

const twitter_video_url =
    "https://twitter.com/AnimeWithRJ/status/1645156770266923008";
const twitter_image_url =
    "https://twitter.com/GenshinImpact/status/1645308130857820161";

TwitterDL(twitter_video_url).then((result) => {
    console.log(result);
});

Response

{
  status: "success" | "error"
  message?: string
  result?: {
    id: string
    created_at: string
    caption: string
    created_timestamp: number
    replies: number
    retweets: number
    likes: number
    possibly_sensitive: boolean
    url: string
    author: {
      id: string
      name: string
      username: string
      avatar_url: string
      banner_url: string
    }
    type: string
    media: string[]
  }
}