Skip to main content

Fetch resources from Instagram

Project description

BasketCase

Fetch resources from Instagram.

Main dependencies

  • requests
  • youtube-dl
  • Pillow

Development setup

  1. Create a virtual environment with venv and cd to the root directory of the project.
  2. Ensure pip is up-to-date
pip install --upgrade pip
  1. Install the dependencies.
pip install -r requirements.txt
  1. Install the package in editable mode
pip install -e .

Installation

pip install basketcase

Usage

Create a text file (e.g. urls.txt) and populate it with resource URLs:

https://www.instagram.com/p/<post_id>/
https://www.instagram.com/p/<post_id>/
https://www.instagram.com/p/<post_id>/
https://www.instagram.com/p/<post_id>/

Pipe the file to the script, passing the session cookie as its argument.

cat urls.txt | basketcase <session_cookie>

Downloaded resources will be stored in the current working directory (i.e. $PWD/basketcase/).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

basketcase-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

basketcase-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file basketcase-0.0.2.tar.gz.

File metadata

  • Download URL: basketcase-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for basketcase-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a2367ea964bdb494c9a38c09a03df70eb0ad8b9ee0410dc079f5df9a64a7b928
MD5 d8772fb93e47ece0e70fd1b14cfa629e
BLAKE2b-256 e408ec0409a9518c3bded3a9f089635f344b1d06746d7a473675bf52836b2e85

See more details on using hashes here.

File details

Details for the file basketcase-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: basketcase-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for basketcase-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a45c986ecd892cceb0d4a2ff4c48fbc7d55781a5d7acde9a46f226c7a3debd6
MD5 99429c183da302daaea66e2da8295c73
BLAKE2b-256 952bbdb230f9b4f9ac6483de2ef2275fc8506b14a5bd4aa64c2224c7baca7574

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page