Fetch resources from Instagram
Project description
BasketCase
Automates downloading images and videos from Instagram posts.
Known limitations:
- Stories and highlights are not supported yet.
- Although two-factor authentication is supported, only the
totp
method has been tested.
Installation and usage
- Install it from PyPI.
pip install 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>/
- Pass the file as a positional argument. An interactive authentication procedure will follow.
basketcase ./basketcase.txt
Downloaded resources will be stored in the current working directory (i.e.
$PWD/basketcase_{timestamp}/
).
User data
Cookies and other application data are kept in ~/.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 .
Package build and upload
- Update the requirements list.
pip freeze --exclude-editable > requirements.txt
- Increment the version on
setup.cfg
. - Build and upload to PyPI.
python -m build
python -m twine upload dist/*
- Commit and push the changes (and the new version tag) to the git repository.
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-3.0.1.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file basketcase-3.0.1.tar.gz
.
File metadata
- Download URL: basketcase-3.0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88e5e64bf42cc58333667386a50c50b2e0d6cb33ab1ba9faa7616cc9a469d31 |
|
MD5 | b12d872f7fdacadaf6792253cea8cee9 |
|
BLAKE2b-256 | 179f144a2eb704d4171b066df9f1e2d1fa14d81bec1400b364e072bc5a34c85f |
File details
Details for the file basketcase-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: basketcase-3.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae04822a04fd84cd8e6aeb7cf3ab780ff962aaf88a06e5b0c0e0703d7c8f01a |
|
MD5 | 5e0acb456a049392f802a33ac57369e2 |
|
BLAKE2b-256 | 27b3059146a4db39a153577997a7b63d6b7683b35a64aa2959336ad438461afa |