2.3.0 ā€¢ Published 4 months ago

threadsdl v2.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

ThreadsMediaDownloader

šŸš« No longer using threads-api since it discontinued. Bye šŸ˜„.

Features

  • Download multiple media in a thread
  • Support image & video

Quickstart

NPM

npm install threadsdl

YARN

yarn install threadsdl

Example Usage

import { getAllMedia } from "threadsdl"
// or
const { getAllMedia } = require("threadsdl")

const url = "https://mediathreads.net/@zuck/post/Cuw_QlKxvbq"

getAllMedia(url).then((result: any) => {
  console.log(result) // JSON
})

Example Response

{
  user: {
    profile_pic_url: string,
    username: string,
    id: null,
    is_verified: boolean,
    pk: string
  },
  type: "photo" | "photos" | "video" | "videos",
  media: {
    width?: number,
    height?: number,
    url: string,
  },
  width: number,
  height: number,,
  caption: string | undefined,
  has_audio: boolean | undefined,
  taken_at: number,
  thumbnail?: any[] | undefined,
}

Tools Used

2.3.0

4 months ago

2.2.0

7 months ago

2.1.2

7 months ago

2.1.1-b

8 months ago

2.1.1

8 months ago

2.1.0

8 months ago