Fetch resources from Instagram
Project description
BasketCase
Fetch resources from Instagram.
It can download images and videos in their highest quality from any type of publication. You need a session cookie to avoid rate limits and access controls.
Installation and usage
- Install it from PyPI. The
--user
flag means it will be installed in your home directory.
pip install --user basketcase
This will put the executable
basketcase
on your PATH.
- Create a text file (e.g.
basketcase.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 contents of the file to the script, passing the session cookie as its first argument.
cat urls.txt | basketcase <session_cookie_id>
Downloaded resources will be stored in the current working directory (i.e.
$PWD/basketcase/
).
Development setup
cd
to the project root and create a virtual environment in a directory namedvenv
, which is conveniently ignored in version control.- Install the dependencies.
pip install -r requirements.txt
- Install this package in editable mode.
pip install -e .
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file basketcase-0.0.5.tar.gz
.
File metadata
- Download URL: basketcase-0.0.5.tar.gz
- Upload date:
- Size: 3.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fad5db15daab50d6dcf31e49df14357d9f8e1ae7b135c61a8164e1ac45d2545 |
|
MD5 | 96a2661ee89d25b3ebe0de60328dade7 |
|
BLAKE2b-256 | c99e30eeac0792ce9f7f77e4af1424f01c3bdd94681090cdff03059b23baece3 |
File details
Details for the file basketcase-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: basketcase-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ecffc51bc77208ad39763d0deb288715d0f08453bfe672d1ff754d1b54eeb20 |
|
MD5 | 1b633cf734b6d7d54c2ff33cdb2a7500 |
|
BLAKE2b-256 | 3b4875afcf0bc69d8c9cdf9e9203b3bbd498d5803232475473c121edf191ab09 |