JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q20955F
  • License ISC

This package gets to you the followers count, follows count, post count and all posts (with comments, like count, shortcode) on Instagram of the username you specify.

Package Exports

  • gets-from-username
  • gets-from-username/server.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gets-from-username) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hi! Welcome to Home Page. 👋

This package gets to you the followers count, follows count, post count, last 12 posts (with comments, like count, shortcode) and Track posts for Discord.js bots on Instagram of the username you specify.

Simple Instance

// Main
const $ = require('gets-from-username');
$.get_count('thiskyhan').then(console.log); // -> { followers: '44', following: '34', postCount: '0' }
$.get_posts('thiskyhan').then(console.log); // -> [] (this account is private)
$.get_posts('cristiano').then(console.log); // -> [{ ... }, { ... }, ...]


// Post Tracker
const Discord = require('discord.js');
const client = new Discord.Client({ Intents: Object.values(Discord.Intents.FLAGS).reduce((a, b) => a + b) });
client.login('your_bot_token');

client.on('ready', () => {
  const { Tracker } = require('gets-from-username');
  new Tracker(client, 'thiskyhan');
});

client.on('newPost', username => {
  return console.log(username+' has posted a new post!'); // -> thiskyhan has posted a new post!
});

News

  • You can now get last 12 posts from Username.
  • Tracking posts from username for Discord.js bots.

Contact

Discord Badge
Discord Badge