This Python script enables you to download any ongoing Instagram livestreams as well as any available replays. It is based on another script that has now been discontinued.
1. Create workspace directory to bind mount:
mkdir workspace
2. Create pyinstalive.ini into workspace directory:
workspace
+---pyinstalive.ini
Note that setting download_path
as .
in pyinstalive.ini
lets download livestreams into the workspace directory:
[pyinstalive]
download_path = .
3. Download:
docker run --rm --volume $(pwd)/workspace:/workspace mstmelody/pyinstalive <target username>
However, if you press Ctrl + C
to stop the container in the middle, the downloading file cannot be played.
Therefore, first connect the terminal to the container to operate interactively:
docker run -it --rm --volume $(pwd)/workspace:/workspace --entrypoint=bash mstmelody/pyinstalive
Then download:
pyinstalive -d <target username>
In this case, the downloading process can be stopped with Ctrl + C
, and the contents of the downloaded file can be played back up to that point.
It would be useful to create Compose file like:
version: "3.8"
services:
pyinstalive:
entrypoint: bash
image: mstmelody/pyinstalive
tty: yes
volumes:
- ./workspace:/workspace/
You can connect the terminal to shell of the container by using following command to operate interactively:
docker-compose run --rm pyinstalive
View license information for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.