Home

Awesome

puppeteer-instagram

Instagram automation driven by headless chrome.

NPM Build Status JavaScript Style Guide

This module also has a CLI.

Install

npm install --save puppeteer-instagram

Usage

This example signs into an Instagram account.

const PuppeteerInstagram = require('puppeteer-instagram')

const instagram = new PuppeteerInstagram()

await instagram.signin({ username: 'xxx', password: 'xxx' })
await instagram.close()

API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Table of Contents

PuppeteerInstagram

Instagram automation driven by headless chrome.

Type: function (opts)


isAuthenticated

Whether or not this instance is authenticated with Instagram.

Type: boolean


user

Authenticated user if authenticated with Instagram.

Type: Object


browser

Puppeteer Browser instance to use.

Type: function ()


signup

Automates the creation of a new Instagram account.

Type: function (user, opts): Promise


signin

Signs into an existing Instagram account.

Note: either username or email is required.

Type: function (user, opts): Promise


signout

Signs out of the currently authenticated Instagram account.

Type: function (): Promise


verifyEmail

Verifies the authenticated Instagram account's email via puppeteer-email.

Type: function (opts): Promise


close

Closes the underlying browser instance, effectively ending this session.

Type: function (): Promise


Related

Somewhat Related

License

MIT © Travis Fischer

Support my OSS work by <a href="https://twitter.com/transitive_bs">following me on twitter <img src="https://storage.googleapis.com/saasify-assets/twitter-logo.svg" alt="twitter" height="24px" align="center"></a>