1.0.2 • Published 8 years ago

acuter v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

NodeJS API for Twitter media

Install

$ npm install --save acuter

Structure

const acuter = require('acuter');

acuter.options('username/links').then(mediaLink => {
	console.log(mediaLink);
	// => get the URL
})

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);
	// => https://pbs.twimg.com/.../Lmp-G_Vm_400x400.jpg
});

Cover image's url of a twiter user :

Example :

const acuter = require('acuter');

acuter.cover('Rishi_Giri_').then(imgLink => {
	console.log(imgLink);
	// => https://pbs.twimg.com/.../1384327436/1500x500
});

Single image's url, shared on twitter :

Example :

const acuter = require('acuter');

acuter.single('https://twitter.com/.../738792492510').then(imgLink => {
	console.log(imgLink);
	// => https://pbs.twimg.com/.../CkC32IeUYAAcZnZ.jpg
});

Preview of a gif available on twitter :

Example :

const acuter = require('acuter');

acuter.preview('https://twitter.com/.../7340008544').then(imgLink => {
	console.log(imgLink);
	// => https://pbs.twimg.com/.../Ci-xqR8WEAAoYtK.jpg
});

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);
	// => https://pbs.twimg.com/.../Ci-xqR8WEAAoYtK.mp4
});

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);
	// => https://o.twimg.com/../proxy.jpg...SAFSDFUYY
});

Related

  • twiger : Download media available on twitter with an ease.

License

MIT © Rishi Giri