twitter direct url
1.0.0
> npm i-节点Twitter-url-direct
const twittergetUrl = require(“ Twitter-url-direct”)让响应=等待TwittergetUrl(“ https://twitter.com/papajuiceman/status/status/1532425868521394178”)
{ found: true, tweet_user: { name: 'Tweets of Cats', username: 'TweetsOfCats', text: 'https://t.co/3kKcSzCZvG' }, type: 'video/gif', duration: 5.725, dimensionsAvailable: 2, download: [ { witdh: '320', height: '566', dimension: '320x566', url: 'https://video.twimg.com/ext_tw_video/1547778885449707520/pu/vid/320x566/ZRiUXOvgiaYmC8tg.mp4?tag=12' }, { witdh: '406', height: '720', dimension: '406x720', url: 'https://video.twimg.com/ext_tw_video/1547778885449707520/pu/vid/406x720/XuStSsCDx6NWjQeq.mp4?tag=12' } ] }
{ found: true, tweet_user: { name: 'cats who share one braincell', username: 'CATBRAINCELL', text: 'I drew a little bee kitty, instead of buzzing it purrs https://t.co/eCqxkvty98' }, type: "image", download: "https://pbs.twimg.com/media/EvpS9B9WgAoim8w.jpg" }
{ found: false, error: "Request failed with status code 404 or other messages" }