1.0.4 • Published 6 years ago

twdown v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

twdown

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

npm.io

It converts twdown.net website into data

[
  {
    ext: 'mp4',
    height: 480,
    protocol: 'https',
    size: '480x480',
    url: 'https://video.twimg.com/amplify_video/943561675927519232/vid/480x480/qURzB_XtWBE-dvRa.mp4',
    width: 480
  }, {
    ext: 'mp4',
    height: 720,
    protocol: 'https',
    size: '720x720',
    url: 'https://video.twimg.com/amplify_video/943561675927519232/vid/720x720/h1uN7biCI-Fbzm9D.mp4',
    width: 720
  }, {
    ext: 'mp4',
    height: 240,
    protocol: 'https',
    size: '240x240',
    url: 'https://video.twimg.com/amplify_video/943561675927519232/vid/240x240/mijiQdCq-p9FaO8H.mp4',
    width: 240
  }, {
    ext: 'mp3',
    protocol: 'https',
    url: 'https://twdown.net/mp3.php?v=NHBtLkQ5bXpiRi1JQ2liN051MWgvMDI3eDAyNy9kaXYvMjMyOTE1NzI5NTc2MTY1MzQ5L29lZGl2X3lmaWxwbWEvbW9jLmdtaXd0Lm9lZGl2Ly86c3B0dGg=&t=token%260c05c632a2822a0a877c7e991602543'
  }
]

Install

NOTE: It needs to pass a browserless instance.

$ npm install twdown --save

Usage

const twdown = require('twdown')
const browserless = require('browserless')()

;(async () => {
  const videos = await twdown({
    url: 'https://twitter.com/verge/status/957383241714970624',
    browserless
  })()

  console.log(videos)
  // [
  //   {
  //     ext: 'mp4',
  //     height: 480,
  //     protocol: 'https',
  //     size: '480x480',
  //     url: 'https://video.twimg.com/amplify_video/943561675927519232/vid/480x480/qURzB_XtWBE-dvRa.mp4',
  //     width: 480,
  //   },
  //   …
  // ]
})()

License

twdown © Kiko Beats, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.

kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago