A simple and practical Twitter downloader that is easy to integrate. You can integrate it into your project that requires downloading Twitter videos and image or just to get Twitter metadata via a link.
- get metadata video/image url
- get metadata user twitter with posted url
- get metadata user twitter
Install coders-twitter with:
npm install coders-twitter
pnpm install coders-twitter
yarn install coders-twitter
import CodersTwitter from 'coders-twitter';
(async (url) => {
try {
const init = new CodersTwitter(); // can also new CodersTwitter(url);
// If there is no URL argument in the constructor, you can add the method below.
init.setArgument(url);
const result = await init.download();
console.log(result);
} catch (error) {
console.error(error);
}
})('https://x.com/NetflixID/status/1895081447482105999');
const CodersTwitter = require('coders-twitter');
(async (url) => {
try {
const init = new CodersTwitter(); // can also new CodersTwitter(url);
// If there is no URL argument in the constructor, you can add the method below.
init.setArgument(url);
const result = await init.download();
console.log(result);
} catch (error) {
console.error(error);
}
})('https://x.com/NetflixID/status/1895081447482105999');
If you have any feedback, please reach out to us at farhanxcode7@gmail.com