중단된 이후 더 이상 thread-api를 사용하지 않습니다. 안녕 ?.
npm install threadsdl
yarn install threadsdl
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
} )
{
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 ,
}