Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/victorsouzaleal/twitter-direct-url
Get Twitter direct url from Tweet media link
https://github.com/victorsouzaleal/twitter-direct-url
download downloader image link media photo picture twitter url video
Last synced: 9 days ago
JSON representation
Get Twitter direct url from Tweet media link
- Host: GitHub
- URL: https://github.com/victorsouzaleal/twitter-direct-url
- Owner: victorsouzaleal
- License: mit
- Created: 2021-03-04T12:11:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-07T12:33:56.000Z (over 1 year ago)
- Last Synced: 2024-10-23T12:14:29.429Z (14 days ago)
- Topics: download, downloader, image, link, media, photo, picture, twitter, url, video
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/twitter-url-direct
- Size: 41 KB
- Stars: 26
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Instalation :
```bash
> npm i --save twitter-url-direct
```## Example
```js
const twitterGetUrl = require("twitter-url-direct")
let response = await twitterGetUrl("https://twitter.com/papajuiceman/status/1532425868521394178")
console.log(response)
```## Output Example - Video/Gif Tweet
```
{
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'
}
]
}
```## Output Example - Image Tweet
```
{
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"
}
```## Output Example - Not Found Video/Image Tweet
```
{
found: false,
error: "Request failed with status code 404 or other messages"
}
```