NodeJS API for Twitter media
Install
$ npm install --save acuter
Structure
const acuter = require('acuter');
acuter.options('username/links').then(mediaLink => {
console.log(mediaLink);
})
Options :
profile : username
cover : username
single : tweet's link
preview : tweet's link
gif : tweet's link
vidPrev : tweet's link
Usage
There are multiple uses of acuter
, it extracts :
✔ Profile picture's url of a twitter user :
Example :
const acuter = require('acuter');
acuter.profile('Rishi_Giri_').then(imgLink => {
console.log(imgLink);
});
✔ Cover image's url of a twiter user :
Example :
const acuter = require('acuter');
acuter.cover('Rishi_Giri_').then(imgLink => {
console.log(imgLink);
});
✔ Single image's url, shared on twitter :
Example :
const acuter = require('acuter');
acuter.single('https://twitter.com/.../738792492510').then(imgLink => {
console.log(imgLink);
});
✔ Preview of a gif
available on twitter :
Example :
const acuter = require('acuter');
acuter.preview('https://twitter.com/.../7340008544').then(imgLink => {
console.log(imgLink);
});
✔ Downloadable link
of a gif
from user's tweet's url :
Example :
const acuter = require('acuter');
acuter.gif('https://twitter.com/.../734001198752544').then(gifLink => {
console.log(gifLink);
});
✔ Preview link
of a video
available on twitter :
Example :
const acuter = require('acuter');
acuter.vidPrev('https://twitter.com/video../738..028').then(gifLink => {
console.log(gifLink);
});
Related
- twiger : Download media available on twitter with an ease.
License
MIT © Rishi Giri