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-downloaderInstall from YARN
yarn add twitter-downloaderUsage
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: number
createdAt: string
caption: string
hastags: string[]
statistics: {
retweetCount: number
favoriteCount: number
hastagCount: number
},
author: {
username: string
fullname: string
bio: string
url: string
createdAt: string
verified: boolean
bannerImage: string
avatarImage: string
statistics: {
followerCount: string
followingCount: string
listedCount: string
favoriteCount: string
statusCount: string
mediaCount: string
}
},
media: string[]
}
}