Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Instagram Posts

Omri Bornstein edited this page Mar 4, 2020 · 2 revisions

$ scr instagram --help

Command for scraping Instagram post files.

Usage Responsibilities

  • You can't attempt to create accounts or access or collect information in unauthorized ways. This includes creating accounts or collecting information in an automated way without our express permission.

Before Usage

  1. Run $ scr login --instagram.
  2. Type your Instagram username in the username: input.
  3. Type your Instagram password in the password: input.
  4. Wait until > Log-in successful. is printed.

Usage

$ scr instagram POST

Options

  • -h, --headless: Toggle for background scraping.

How Does It Work?

  1. The user puts Instagram credentials ahead of post scraping.
  2. The Chromium bot will remember the credentials entered the login form of the selected social network.
  3. The user specifies the social network and the desired post ID.
  4. The Chromium bot browser is opened.
  5. Puppeteer navigates to the post.
  6. Puppeteer loads all available files and their URLs.
  7. The CLI downloads the files to the current codebase directory.
  8. The bot browser is closed.
  9. The command is terminated by the Node.js runtime.