1.1.1 • Published 2 years ago

instagramuploader v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Module based on puppeteer to publish Videos to instagram

It currently has NO tested support for images Instagram only has support for mp4. Other video formats may not work

/**
 * Creates a **puppeteer** browser.
 *
 * @example
 * instagramUploader.createBrowser()
 * 
 * @example
 * instagramUploader.createBrowser({headless: false})
 *
 *
 * @return a pupppeteeer browser
 */

/**
 * Log ins into instagram in the browser
 * browser should be a puppeteer browser or a 
 * instagramUploader.createBrowser browser
 *
 * @example
 * instagramUploader.login(browser, {
 *  email: "Your email adress",
 *  password: "Your Password"
 * })
 *
 */

/**
 * Uploads a video to instagram
 * browser should be a puppeteer browser or a 
 * instagramUploader.createBrowser browser
 *
 * @example
 * instagramUploader.upload(browser, {
 *  caption: "Caption for the video",
 *  audio: true|false // If it should have audio,
 *  autoGenerateCaptions: true|false // If it should generate captions,
 *  hideLikes: true|false // If you want to hide the likes,
 *  disableComments: true|false // If you want to disable the comments,
 *  file: "path/to/video.mp4" // Path to video
 * })
 *
 */