Python script to download Instagram livestreams and replays.

Cammy 68b42a983b Add path check for config save path, improve auth logging hace 7 años
.github f10e3de361 Create issue_template.md hace 7 años
pyinstalive 68b42a983b Add path check for config save path, improve auth logging hace 7 años
.gitignore f031667c9e Add setup.py hace 7 años
README.md 2f59c41212 Update README.md hace 7 años
setup.py 68b42a983b Add path check for config save path, improve auth logging hace 7 años

README.md

PyInstaLive

This script enables you to record Instagram livestreams. It is based on another script that has now been discontinued.

Installation

Run the following command in command line / terminal:

pip install git+https://github.com/notcammy/PyInstaLive.git --process-dependency-links

Make sure there is a configuration file called pyinstalive.ini in the directory you want to run PyInstaLive from.

Here is an example of a valid configuration file:

[pyinstalive]
username = johndoe
password = grapefruits
save_path = C:\Instagram_Livestream_Downloads

Updating

To update PyInstaLive run the following command:

pip install git+https://github.com/notcammy/PyInstaLive.git --process-dependency-links --upgrade

Note

You need ffmpeg, Git and Python 2.x with Pip installed before you can install and use this script.

Usage

python -m pyinstalive -u "<username>" -p "<password>" -r "<live-username>"

Where <username> is your account's username, <password> is your password and <live-username> is the username of the user whose livestream you want to record.

Note

the username and password parameters are not required when you have specified these in the configuration file.

Example

python -m pyinstalive -u "johndoe" -p "grapefruits" -r "janedoe"

Or (see installation)

python -m pyinstalive -r "janedoe"

If a livestream is currently ongoing, the terminal output should be something like this:

PYINSTALIVE DOWNLOADER (Script v1.0)
--------------------------------------------------
[I] Login to "johndoe" OK!
[I] Checking broadcast for "janedoe"...
[I] Starting broadcast recording:
[I] Username    : janedoe
[I] MPD URL     : https://scontent-ams3-1.cdninstagram.com/hvideo-frc1/v/rNAi8avEBU6f0EgB0oLu7/live-dash/dash-abr/17870846050136409.mpd?_nc_rl=AfCS41CMvXPH2xWa&oh=43d66cf045816a1c83310da05fac0949&oe=5992E01E
[I] Viewers     : 1118 watching
[I] Airing time : 37 minutes and 20 seconds
[I] Status      : Active

[I] Recording broadcast...

Help

If you have a bug to report please open an issue in the appropriate format:

- Expected behavior
- Actual behavior
- Steps to reproduce problem