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

AppleGamer22/scr-cli

Repository files navigation

@applegamer22/scr-cli

Network Github NPM
license GitHub license NPM license
relase GitHub release NPM relase
build status publish-image
downloads GitHub downloads NPM downloads
people GitHub contributors NPM collaborators
code size GitHub code size
forks GitHub forks
stars GitHub stars
watchers GitHub watchers

Description

Instagram web scraper for social post file(s) downloads.

Installation

$ sudo npm i -g @applegamer22/scr-cli

Contributing

  • Separate Git branch to the master branch (after being approved as a contributor by the repository's owner).
    • After reviewing the changes, this branch will be merged to the main branch.
  • Separate fork to this repository

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.

You may not:

  • use automated scripts to collect information from or otherwise interact with the Services;

C Service Rules You agree not to engage in any of the following prohibited activities:

  • (I) copying, distributing, or disclosing any part of the Service in any medium, including without limitation by any automated or non-automated “scraping”,
  • (II) using any automated system, including without limitation “robots,” “spiders,” “offline readers,” etc., to access the Service in a manner that sends more request messages to the VSCO servers than a human can reasonably produce in the same period of time by using a conventional on-line web browser (except that VSCO grants the operators of public search engines revocable permission to use spiders to copy materials from vsco.co for the sole purpose of and solely to the extent necessary for creating publicly available searchable indices of the materials but not caches or archives of such materials),
  • (XI) accessing any content on the Service through any technology or means other than those provided or authorized by the Service,
  • (XII) bypassing the measures we may use to prevent or restrict access to the Service, including without limitation features that prevent or restrict use or copying of any content or enforce limitations on use of the Service or the content therein.

Prerequisites

Before Using The CLI:

Development

  1. Clone this repository by running $ git clone https://github.com/AppleGamer22/Social-Scraper.git in your command-line.
  2. Run $ npm install in the root directory of the downloaded copy.

Using The CLI:

  1. Run $ scr auth --instagram before using instagram, highlight or story.
  2. Run $ scr <command> --<flags> post_id in you command line.
  3. Wait until the program says:

Downloading...Done.

How Does It Work?

  1. The user puts Instagram/VSCO 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.