Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

acuter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acuter

NodeJS API for Twitter media

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source


acuter

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
});
  • twiger : Download media available on twitter with an ease.

License

MIT © Rishi Giri

Keywords

FAQs

Package last updated on 17 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc