|
@@ -1,5 +1,5 @@
|
|
# PyInstaLive
|
|
# PyInstaLive
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
This Python script enables you to download any ongoing Instagram livestreams as well as any available replays. It is based on [another script](https://github.com/taengstagram/instagram-livestream-downloader) that has now been discontinued.
|
|
This Python script enables you to download any ongoing Instagram livestreams as well as any available replays. It is based on [another script](https://github.com/taengstagram/instagram-livestream-downloader) that has now been discontinued.
|
|
|
|
|
|
@@ -11,12 +11,11 @@ This Python script enables you to download any ongoing Instagram livestreams as
|
|
- [Notes](https://github.com/notcammy/PyInstaLive#notes)
|
|
- [Notes](https://github.com/notcammy/PyInstaLive#notes)
|
|
- [Help](https://github.com/notcammy/PyInstaLive#help)
|
|
- [Help](https://github.com/notcammy/PyInstaLive#help)
|
|
|
|
|
|
-## Features
|
|
|
|
|
|
+## Main Features
|
|
|
|
|
|
- Download ongoing livestreams (also detects livestreams in which the user is a guest of someone else's livestream)
|
|
- Download ongoing livestreams (also detects livestreams in which the user is a guest of someone else's livestream)
|
|
- Download available replays
|
|
- Download available replays
|
|
- Download livestream and replay comments
|
|
- Download livestream and replay comments
|
|
-- Run a command when starting and/or finishing a download (Experimental)
|
|
|
|
|
|
|
|

|
|

|
|
|
|
|
|
@@ -24,7 +23,7 @@ This Python script enables you to download any ongoing Instagram livestreams as
|
|
|
|
|
|
- [Read the Notes & Help sections below (important!)](https://github.com/notcammy/PyInstaLive#notes)
|
|
- [Read the Notes & Help sections below (important!)](https://github.com/notcammy/PyInstaLive#notes)
|
|
- Install the prerequisites and then PyInstaLive.
|
|
- Install the prerequisites and then PyInstaLive.
|
|
-- Run `pyinstalive -c` to generate a configuration file.
|
|
|
|
|
|
+- Run `pyinstalive` to generate a default configuration file.
|
|
- Edit the configuration file using any text editor.
|
|
- Edit the configuration file using any text editor.
|
|
- Run `pyinstalive -d "<live-username>"` to start downloading a livestream or replay.
|
|
- Run `pyinstalive -d "<live-username>"` to start downloading a livestream or replay.
|
|
|
|
|
|
@@ -57,15 +56,15 @@ In case it doesn't work or you just prefer building PyInstaLive from source foll
|
|
|
|
|
|
Run the following command in Command Prompt (might need to be run as administrator on Windows) or a terminal:
|
|
Run the following command in Command Prompt (might need to be run as administrator on Windows) or a terminal:
|
|
```bash
|
|
```bash
|
|
-pip install git+https://github.com/notcammy/PyInstaLive.git@2.6.0 --process-dependency-links
|
|
|
|
|
|
+pip install git+https://github.com/notcammy/PyInstaLive.git@3.0.0 --process-dependency-links
|
|
```
|
|
```
|
|
|
|
|
|
#### Updating
|
|
#### Updating
|
|
|
|
|
|
-To update PyInstaLive to the latest version (currently **2.6.0**) run the following command:
|
|
|
|
|
|
+To update PyInstaLive to the latest version (currently **3.0.0**) run the following command:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-pip install git+https://github.com/notcammy/PyInstaLive.git@2.6.0 --process-dependency-links --upgrade
|
|
|
|
|
|
+pip install git+https://github.com/notcammy/PyInstaLive.git@3.0.0 --process-dependency-links --upgrade
|
|
```
|
|
```
|
|
|
|
|
|
#### Specific versions
|
|
#### Specific versions
|
|
@@ -119,37 +118,36 @@ Below is an example of PyInstaLive's output after downloading a livestream:
|
|
```
|
|
```
|
|
> pyinstalive -d "janedoe"
|
|
> pyinstalive -d "janedoe"
|
|
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-PYINSTALIVE (SCRIPT V2.6.0 - PYTHON V3.6.3) - 06:45:30 PM
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Successfully logged into user "johndoe".
|
|
|
|
-[I] Cookie file expiry date: 2018-09-01 at 04:38:08 PM
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Getting info for "janedoe" successful.
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Checking for livestreams and replays...
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Livestream found, beginning download...
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] PYINSTALIVE (SCRIPT V3.0.0 - PYTHON V3.6.3) - 01-02-2019 06:56:29 PM
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Successfully logged into account: johndoe
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Getting info for 'janedoe' successful.
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Livestream available, starting download.
|
|
|
|
+---------------------------------------------------------------------------
|
|
[I] Username : janedoe
|
|
[I] Username : janedoe
|
|
-[I] Viewers : 100 watching
|
|
|
|
-[I] Airing time : 2 minutes And 10 seconds
|
|
|
|
|
|
+[I] Viewers : 335 watching
|
|
|
|
+[I] Airing time : 2 minutes and 8 seconds
|
|
[I] Status : Active
|
|
[I] Status : Active
|
|
-[I] MPD URL : https://scontent-amt2-1.cdninstagram.com/hvideo-prn1/v/rID1yGvO_UPlsukIhbhOx/live-dash/dash-hd/17907800311113848.mpd?_nc_rl=AfBVd51QpQOj_ImC&oh=aa8d53b4fd736c0edc29c97b411bd32b&oe=5A6FDE8B
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Downloading livestream... press [CTRL+C] to abort.
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] The livestream has ended.
|
|
|
|
-[I] Download duration : 13 minutes and 10 seconds
|
|
|
|
-[I] Stream duration : 15 minutes and 20 seconds
|
|
|
|
-[I] Missing (approx.) : 2 minutes and 10 seconds
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Stopping comment downloading and saving comments (if any)...
|
|
|
|
-[I] Successfully saved 550 comments to logfile.
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
-[I] Stitching downloaded files into video...
|
|
|
|
-[I] Successfully stitched downloaded files into video.
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Downloading livestream, press [CTRL+C] to abort.
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] The livestream has been ended by the user.
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Airtime duration : 3 minutes and 13 seconds
|
|
|
|
+[I] Download duration : 1 minutes and 7 seconds
|
|
|
|
+[I] Missing (approx.) : 2 minutes and 6 seconds
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Waiting for comment downloader to finish.
|
|
|
|
+[I] Successfully saved 19 comments.
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] Merging downloaded files into video.
|
|
|
|
+[I] Successfully merged downloaded files into video.
|
|
|
|
+---------------------------------------------------------------------------
|
|
|
|
+[I] There are no available replays.
|
|
|
|
+---------------------------------------------------------------------------
|
|
```
|
|
```
|
|
|
|
|
|

|
|

|