Nervous Parrot Muttering

    twitter-url-direct

    1.0.4 • Public • Published

    Instalation :

    > npm i --save twitter-url-direct

    Example

    const twitterGetUrl = require("twitter-url-direct")
    let response = await twitterGetUrl("https://twitter.com/TweetsOfCats/status/1547778899534172160")
    console.log(response)

    Output Example - Video/Gif Tweet

    {
        found: true,
        type: "video/gif",
        dimensionsAvailable: 3,
        download: [
             {
                width: '480',
                height: '480',
                dimension: '480x480',
                url: 'https://video.twimg.com/ext_tw_video/1367431274021928962/pu/vid/480x480/Mci5Lz4vRDtmGMCM.mp4?tag=10'
            },
            {
                width: '320',
                height: '320',
                dimension: '320x320',
                url: 'https://video.twimg.com/ext_tw_video/1367431274021928962/pu/vid/320x320/EBqdjRZKrUDG1Q_Q.mp4?tag=10'
            },
            {
                width: '720',
                height: '720',
                dimension: '720x720',
                url: 'https://video.twimg.com/ext_tw_video/1367431274021928962/pu/vid/720x720/jQpjRIlF03JxfgwD.mp4?tag=10'
            }
        ]
    }
    

    Output Example - Image Tweet

    {
        found: true,
        type: "image",
        download: "https://pbs.twimg.com/media/EvpS9B9WgAoim8w.jpg"
    }
    

    Output Exemple - Not Found Video/Image Tweet

    {
        found: false,
    }
    

    Install

    npm i twitter-url-direct

    DownloadsWeekly Downloads

    4,698

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.64 kB

    Total Files

    5

    Last publish

    Collaborators

    • victorsouzaleal