Python script to download Instagram livestreams and replays.

Cammy 18d9e94f3e Update README.md %!s(int64=7) %!d(string=hai) anos
.github f10e3de361 Create issue_template.md %!s(int64=7) %!d(string=hai) anos
.gitignore 6e4e3c98e5 Update gitignore, switch version, minor logging improvement %!s(int64=7) %!d(string=hai) anos
README.md 18d9e94f3e Update README.md %!s(int64=7) %!d(string=hai) anos
cAuthCookie.py 98eb9e79dd Readded version number %!s(int64=7) %!d(string=hai) anos
cComments.py dcde0c9934 Start comments development, improve existing code readability %!s(int64=7) %!d(string=hai) anos
cDownloader.py 6e4e3c98e5 Update gitignore, switch version, minor logging improvement %!s(int64=7) %!d(string=hai) anos
cLogger.py 93da9d4287 Remove old file, split functions %!s(int64=7) %!d(string=hai) anos
cMain.py 6756587640 Revert version number change: caused temp files not to save %!s(int64=7) %!d(string=hai) anos
looper.sh 6e4e3c98e5 Update gitignore, switch version, minor logging improvement %!s(int64=7) %!d(string=hai) anos

README.md

PyInstaLive

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

Dependencies

You need to install these dependencies first before this script will work:

instagram_private_api

instagram_private_api_extensions

Note

You need Git and Python 2.x with Pip installed before you can install these dependencies.

Usage

python cMain.py -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.

Example

python cMain.py -u "johndoe" -p "grapefruits" -r "justinbieber"

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 "justinbieber"...
[I] Starting broadcast recording:
[I] Username    : justinbieber
[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