Giter Site home page Giter Site logo

dvingerh / pyinstalive Goto Github PK

View Code? Open in Web Editor NEW
547.0 32.0 112.0 547 KB

Python script to download Instagram livestreams.

License: MIT License

Python 100.00%
instagram-livestream-recorder record-instagram-livestreams live instagram record livestream video recorder downloader download

pyinstalive's Introduction

Notice

Active development for this script has ended. Issues will no longer be looked into and no more updates will be made.

Using this script may result in your account being suspended, use at your own risk.

PyInstaLive

Version 4.0.2 Python 3.6+

This Python script enables you to download ongoing Instagram livestreams as a video file.

Table of Contents

Quickstart

  • Install the prerequisites and then PyInstaLive.
  • Run pyinstalive to generate a default configuration file.
  • Edit the configuration file using any text editor.
  • Run pyinstalive -d "<live-username>" to start downloading a livestream.

Prerequisites

Make sure all tools are accessible via command line (added to your PATH if on Windows, use Google).

Installation

Tip โ€” To install PyInstaLive with the latest commit changes, remove the version tag from the install command.

Run the following command in your command line (might need to be run as administrator on Windows):

pip install git+https://github.com/dvingerh/[email protected]

Usage

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

PyInstaLive will automatically generate a default configuration file for you to edit if one is not present already.

Here is an example of a valid configuration file:

[pyinstalive]
username = johndoe
password = grapefruit
download_path = 
ffmpeg_path = 
download_comments = True    
cmd_on_started =
cmd_on_ended =
clear_temp_files = False
use_locks = True
no_assemble = False
log_to_file = True

Example

pyinstalive -d "janedoe"

Below is an example of PyInstaLive's output after downloading a livestream:

> pyinstalive -d "janedoe"

---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V4.0.2 - PYTHON V3.8.10) - 06-10-2022 05:02:02 PM
---------------------------------------------------------------------------
An existing login session file was found: johndoe.dat
Checking the validity of the saved login session.
---------------------------------------------------------------------------
Successfully logged in using account: johndoe
The login session file will expire on: 06-09-2023 at 12:41:55 PM
---------------------------------------------------------------------------
Getting livestream information for user: janedoe
---------------------------------------------------------------------------
Livestream available, starting download.
---------------------------------------------------------------------------
Downloading livestream, press [CTRL+C] to abort.
---------------------------------------------------------------------------
Airing time  : 4 minutes and 45 seconds
Status       : Active
Viewers      : 75
---------------------------------------------------------------------------
The livestream has been ended.
---------------------------------------------------------------------------
Airing time  : 6 minutes and 25 seconds
Downloaded   : 1 minutes and 21 seconds
Missing      : 5 minutes and 4 seconds
---------------------------------------------------------------------------
Waiting for background tasks to finish.
---------------------------------------------------------------------------
Saving 12 comments to text file.
Successfully saved text file: 20220610_janedoe_17905387649602356_1654873322_live.log
---------------------------------------------------------------------------
Assembling segments into video file.
Successfully saved video file: 20220610_janedoe_17905387649602356_1654873322_live.mp4
---------------------------------------------------------------------------

pyinstalive's People

Contributors

crypticsignal avatar dvingerh avatar mkafrin avatar pjw91 avatar wivb0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyinstalive's Issues

Request for updating windows CLI build

  • I am using the latest version of PyInstaLive: 3.0.3.
  • I have installed either Python 2.7.x or 3.5+: 3.7.2
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To ask a question, fill in the information below.

Question

Hi,
Can you update the windows build? Thanks.
also is it possible to add an option to check 24/7 for lives for particular users in form of .txt file without the need to create .bat for each user?
i have no experience in python, but I'm pretty familiar with C,C++ and would be happy to help if needed.
(I am a computer science student )

Duplicate Replays Downloaded

  • I am using the latest version of PyInstaLive: 3.1.2.
  • I have installed either Python 2.7.x or 3.5+: 3.5.2
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Linux (distribution: Ubuntu 16.04)

PyInstaLive information
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.1.2 - PYTHON V3.5.2) - 05-21-2019 07:52:52 PM
---------------------------------------------------------------------------
[W] Getting livestream heartbeat is disabled, this may cause degraded performance.
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        3.1.2
[I] Python version:             3.5.2
[I] FFmpeg framework:           Available
[I] Cookie files:               1 (<REDACTED> matches config user)
[I] CLI supports color:         Yes
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = <REDACTED>
    password = <REDACTED>
    download_path = /home/ubuntu/live
    download_lives = True
    download_replays = True
    download_comments = False
    show_cookie_expiry = True
    log_to_file = False
    ffmpeg_path =
    run_at_start =
    run_at_finish =
    use_locks = False
    clear_temp_files = True
    do_heartbeat = False
    proxy =
    verbose = False

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

pyinstalive -u <REDACTED> -p <REDACTED> -d <REDACTED> -cp "/home/ubuntu/pyinstalive.ini" -dp "/home/ubuntu/live"

Behavior

Starting today, I'm not sure if there were any changes to Instagram's side causing this, but for any replay, I'm getting different file names resulting in my script downloading replays multiple times in the format of: YYYYMMDD_<USER_ID>_<REPLAY_ID>_<UNIX_TIMESTAMP>_replay.mp4 where UNIX_TIMESTAMP increments every time the crontab job is run. This resulted in over 100+ replay videos being created.

Steps to reproduce issue

crontab has the above command run every minute. If the user has a replay, then the exact same replay file is downloaded every minute causing multiple duplicates.

Question

For a replay video only (not a live video), is there a way we can limit it to only downloading once if the video file has already been downloaded? It should check the --dp directory and make sure the video id is non-existent before deciding to download a duplicate replay.

Thanks.

Crash in flash screen while try to launch pyinstalive

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.0.9.
  • I have installed either Python 2.7.x or 3.5+: 3.7.2
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • [x ] Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.0.9 - PYTHON V3.6.3) - 01-02-2019 07:00:17 PM
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        3.0.9
[I] Python version:             3.6.3
[I] FFmpeg framework:           Available
[I] Cookie files:               2 (johndoe.json matches config user)
[I] CLI supports color:         Yes
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = *removed*
    password = *removed*
    download_path = \path\to\downloads
    download_lives = True
    download_replays = True
    download_comments = True
    show_cookie_expiry = False
    ffmpeg_path =
    log_to_file = True
    run_at_start =
    run_at_finish =
    use_locks = True
    clear_temp_files = False

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

Paste the command here that you are running. Don't forget to omit your username and password.

Example: pyinstalive -u "johndoe" -p "grapefruits" -d "justinbieber"

Behavior

Accurately describe the issue you're experiencing with the script.

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

Log files

Please attach the log file of the user you were trying to download (if applicable) and the pyinstalive.default.log log file.
If any of the files exceed 10MB in size please use WeTransfer or a similar service to upload these files.

To ask a question, fill in the information below.

Question

The pyinstalive file that downloaded is PyInstaLive-master. While tried to launch the setup the command page will popped out and closed within a second.

assembling no work

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.0.7.
  • I have installed either Python 2.7.x or 3.5+: 3.5
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.0.7 - PYTHON V3.6.3) - 01-02-2019 07:00:17 PM
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        3.0.7
[I] Python version:             3.6.3
[I] FFmpeg framework:           Available
[I] Cookie files:               2 (johndoe.json matches config user)
[I] CLI supports color:         Yes
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = *removed*
    password = *removed*
    download_path = \path\to\downloads
    download_lives = True
    download_replays = True
    download_comments = True
    show_cookie_expiry = False
    ffmpeg_path =
    log_to_file = True
    run_at_start =
    run_at_finish =
    use_locks = True
    clear_temp_files = False

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

Paste the command here that you are running. Don't forget to omit your username and password.

Example: pyinstalive -u "johndoe" -p "grapefruits" -d "justinbieber"

Behavior

when i try to assembling sho am error

[W] No matching json file found for the segment directory, trying to continue without it.
[I] Assembling video segment files from specified folder: C:\Users\nikotz\live\20190216_euamandal__17969835358221823_1550368309_live_downloads
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000029e387caa40] could not find corresponding track id 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000029e387caa40] could not find corresponding trex
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000029e387caa40] error reading header
C:\Users\nikotz\live\20190216_euamandal__17969835358221823_1550368309_live_downloads\assembled_source_17969835358221823_0_mp4.tmp: Invalid data found when processing input
[W] FFmpeg exit code not '0' but '1'.

C:\Users\nikotz>

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

To ask a question, fill in the information below.

Question

Describe your question here as clear as possible.

Comment Downloader

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • [x ] I have installed the latest version of PyInstaLive: 2.3.4.
  • [ x] I have installed either Python 2.7.x or 2.5>=.
  • [x ] I have read the README.
  • [x ] I have read the FAQ.
  • [x ] I have checked all existing issues, none of which could solve my issue.

I am using:

  • [x ] Windows 7

To ask a question, fill in the information below.

Question

Hi, I have a question.
In the original https://github.com/taengstagram/instagram-livestream-downloader project, there is feature to download comments from verified account.
Can pyinstalive do this as well ?
I have been look around but can't find this feature on pyinstalive, or did I miss it ?
It would been nice to have comment download feature on pyinstalive as well. ๐Ÿ˜„
Thank you.

Could not get livestreams info: log() missing 1 required positional arg ument: 'color'

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • [x ] I have installed the latest version of PyInstaLive: 2.3.4.
  • [x ] I have installed either Python 2.7.x or 2.5>=.
  • [x ] I have read the README.
  • [x ] I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • [x ] Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

Command used

Paste the command here that you are running. Remove any information like usernames and passwords.

Example: pyinstalive -u "johndoe" -p "grapefruits" -r "justinbieber"

Behavior

Accurately describe the issue you're experiencing with the script.

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

To ask a question, fill in the information below.

Question

I have another problem, when I download the live stream, and the user finish their live stream, I had this error
---------------------------------------------------------------------- [I] Recording livestream... press [CTRL+C] to abort. [E] Could not get livestreams info: log() missing 1 required positional arg ument: 'color' ----------------------------------------------------------------------
that only happen if the user finish the stream.
If I manualy abort the download using CTRL+C, it can download and stich the video properly like it suppose to.
how do I fix this "Could not get livestreams info: log() missing 1 required positional arg
ument: 'color' " error ?
Thank you.

Problems with 24/7 script (Code: 400)

Remove all spaces already present in the box.
  • I have installed the latest version of PyInstaLive: 2.5.1.
  • I have installed either Python 2.7.x or 3.5>=.
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

Command used
cd C:\Users\
:loop
pyinstalive -u "username" -p "password" -r "username_record"
timeout 150 > nul
goto loop
Behavior

I got blocked by IG 2 times in a row using 2 different accounts. (CODE:400)

Steps to reproduce issue

Account 1: I was using the script with a timeout of 15s, then I got problems so I changed it to 600s. It worked for about 5/6h. (I am recording just 1 user!!!).

Account 2: I created the account in the same IP address and in the same device i'm running PyInstaLive. The script was with a timeout of 150s and worked for 4/5h. (Again, I am recording just 1 user!!!)

I tested the Account 1 on the command prompt (pyinstalive -r "username_record") and its working normally. The code 400 only occurs in the batch.

Question

I read in the FAQ that this error occurs if you're trying to record many users at the same time, or if the timeout is 5s or less. Why is this happening to me?

Unable to download replay streams

- Expected behavior
Was trying to download a replay stream. I have Python 3.5.3 installed, PyInstaLive on version 2.3.3

- Actual behavior
Replays can be found but unable to download, throws error: [E] Could not save replay: 'generator' object has no attribute 'next'

- Steps to reproduce problem
pyinstalive -u "username" -p "password" -r "live-username"

[Request] Visibility of me in the broadcast

  • I am using the latest version of PyInstaLive: 3.0.4.
  • I have installed either Python 2.7.x or 3.5+: 3.6
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

Question

can you add an argument to the script so its possible to disable me appearing as a viewer in the live stream ?
Currently I have the script running on 3 different batch files , and I want it to disable me appearing as a viewer in just one account and not all of them.
If do the previous solution you suggested, by changing the configuration file, it would disable me appearing as a viewer in all accounts.

Another request is to upload an .exe version when you ever update the script.

Unable to login.

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

  • I am using the latest version of PyInstaLive: 3.1.4.
  • I have installed either Python 2.7.x or 3.5+: 3.7.3
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

[I] PyInstaLive version: 3.1.1
[I] Python version: 3.7.3
[I] FFmpeg framework: Available
[W] Cookie files: None found
[I] CLI supports color: No
[I] Command to run at start: None
[I] Command to run at finish: None
[I] Config file contents:

[pyinstalive]
username = *removed*
password = *removed*
download_path = C:\Users\H\Desktop\Insta
download_lives = True
download_replays = True
download_comments = true
show_cookie_expiry = True
log_to_file = True
ffmpeg_path =
run_at_start =
run_at_finish =
use_locks = True
clear_temp_files = False
do_heartbeat = False
proxy =
verbose = False
Command used

Paste the command here that you are running. Don't forget to omit your username and password.

I am using the following command:
pyinstalive -d "[username of instagram user]"

Behavior

I get the following error every time:

[W] Unable to find cookie file: cosmic_epiphany1.json
[I] Creating a new one.

[E] Could not login: {"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge/13560800897/8sDFAfxW2E/", "api_path": "/challenge/13560800897/8sDFAfxW2E/", "hide_webview_header": true, "lock": true, "logout": false, "native_flow": true}, "status": "fail", "error_type": "checkpoint_challenge_required"}
[E] challenge_required

IOError while recording live

Sometimes while recording videos live, the program starts throwing exceptions for each .m4v video part it attempts to download (and presumably fails, since it's saying file not found)?

[I] Recording livestream... press [CTRL+C] to abort.
Exception in thread 17907464143026509-935802.m4a:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Library/Python/2.7/site-packages/instagram_private_api_extensions/live.py", line 332, in _download
    with open(output, 'wb') as f:
IOError: [Errno 2] No such file or directory: '/Users/useraccount/pyinstalive/20171111_username_17907464143026509_1510392650_live_downloads/17907464143026509-935802.m4a'

Exception in thread 17907464143026509-936803.m4a:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Library/Python/2.7/site-packages/instagram_private_api_extensions/live.py", line 332, in _download
    with open(output, 'wb') as f:
IOError: [Errno 2] No such file or directory: '/Users/useraccount/pyinstalive/20171111_username_17907464143026509_1510392650_live_downloads/17907464143026509-936803.m4a'

etc., until keyboard interrupt/killing process.

It then fails to stitch together any video files as well:

[I] Stitching downloaded files into video...
/Users/useraccount/pyinstalive/20171111_username_17908019929020364_1510392672_live_downloads/source_17908019929020364_0_mp4.tmp: No such file or directory
[I] Successfully stitched downloaded files.

Cannot reliably reproduce. Python 2.7.10, Mac OS X

Stitching downloaded files together

I exited the stream early and it didn't seem to put all the chunks into one file. Is there a command to stitch all of them together manually?

Download livestream from the start

  • I am using the latest version of PyInstaLive: 2.6.0.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10

  • Windows 8.1

  • Windows 8

  • Windows 7

  • Linux (distribution: )

  • macOS (version:10.13.6)

  • Other (device & OS name: )

  • I am using the executable pyinstalive.exe which I downloaded from this page and I have installed the update needed to use it.

Question

Is there any way where I can download the previous seconds or minutes of an ongoing instagram live that I missed? Let's say I was a minute late of someone's livestream, is there any way where it can backtrack and download the livestream FROM THE START? thank you!

Issues after update

  • I am using the latest version of PyInstaLive: 2.5.4.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10

  • Windows 8.1 and have installed the required update.

  • Windows 8 and have installed the required update.

  • Windows 7 and have installed the required update.

  • Linux (distribution: )

  • macOS (version: )

  • Other (device & OS name: )

  • I am using the Windows executable.

----------------------------------------------------------------------
PYINSTALIVE (SCRIPT V2.5.4 - PYTHON V3.5.4) - 01:23:22 PM
----------------------------------------------------------------------
[W] Unable to find auth cookie file: xxx.json
[I] New auth cookie file was made: xxx.json
[I] Using cached login cookie for "xxx".
Traceback (most recent call last):
  File "C:\Users\Windows\AppData\Local\Programs\Python\Python35\Scrip
ts\pyinstalive-script.py", line 11, in <module>
    load_entry_point('pyinstalive==2.5.4', 'console_scripts', 'pyinstalive')()
  File "c:\users\windows\appdata\local\programs\python\python35\lib\s
ite-packages\pyinstalive\initialize.py", line 430, in run
    api = login(settings.username, settings.password, settings.show_cookie_expir
y, False)
  File "c:\users\windows\appdata\local\programs\python\python35\lib\s
ite-packages\pyinstalive\auth.py", line 102, in login
    cookie_expiry = api.cookie_jar.expires_earliest
AttributeError: 'ClientCookieJar' object has no attribute 'expires_earliest'

An error occurred: [WinError 2] The system cannot find the file specified

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

  • [x ] I am using the latest version of PyInstaLive: 3.1.0.
  • [x ] I have installed either Python 2.7.x or 3.5+: 2.7
  • [x ] I have read the README.
  • [x ] I have read the FAQ.
  • [x ] I have checked all existing issues, none of which could solve my issue.

I am using:

  • [x ] Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.1.0 - PYTHON V3.7.2) - 05-07-2019 12:29:49 PM
---------------------------------------------------------------------------
[W] Getting livestream heartbeat is disabled, this may cause degraded performance.
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.
[I] PyInstaLive version:        3.1.0
[I] Python version:             3.7.2
[E] FFmpeg framework:        Not found
[I] Cookie files:               1 (user anem.json matches config user)
[I] CLI supports color:         No
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = username here
    password = pw here
    download_path = C:\Users\myname
    download_lives = True
    download_replays = True
    download_comments = true
    show_cookie_expiry = True
    log_to_file = True
    ffmpeg_path =
    run_at_start =
    run_at_finish =
    use_locks = True
    clear_temp_files = False
    do_heartbeat = False
    proxy =

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

C:\Users\vincent>pyinstalive --assemble "20190430_someonesusername__17868526825370867_1556677082_live_downloads"

[I] PYINSTALIVE (SCRIPT V3.1.0 - PYTHON V3.7.2) - 05-07-2019 12:27:23 PM

[W] Getting livestream heartbeat is disabled, this may cause degraded performance.

[W] No matching json file found for the segment directory, trying to continue without it.
[I] Assembling video segment files from specified folder: 20190430_someonesusername__17868526825370867_1556677082_live_downloads
[E] An error occurred: [WinError 2] The system cannot find the file specified

Behavior

its not assembling the file

Steps to reproduce issue

everytime it assembles anything

Required dditional files

Please attach the log file of the user you were trying to download (if applicable) and the pyinstalive.default.log log file.
If your issue is related to assembling segment files please also include the JSON file and a zipped segment files directory.
If any of these files exceed 10MB in size please use WeTransfer or a similar service to upload these files.

To ask a question, fill in the information below.

Question

Describe your question here as clear as possible.

Download via ID rather than username and custom cmd line parameters

  • I am using the latest version of PyInstaLive: 2.5.8.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Linux (distribution: ubuntu xenial )
PyInstaLive information
$ pyinstalive --info
----------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V2.5.8 - PYTHON V2.7.12) - 03:38:44 AM
----------------------------------------------------------------------
[W] Invalid or missing setting detected for 'ffmpeg_path', falling back to environment variable.
----------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:    	2.5.8
[I] Python version:         	2.7.12
[I] FFmpeg framework:       	Available
[I] Cookie files:            	1 ([**redacted**].json matches config user)
[I] CLI supports color:     	Yes
[I] File to run at start:       None
[I] File to run at finish:      None

[I] Config file:

    [pyinstalive]
    username = [**redacted**]
    password = [**redacted**]
    save_path = /home/[**redacted**]
    ffmpeg_path =
    show_cookie_expiry = true
    clear_temp_files = false
    save_lives = true
    save_replays = true
    run_at_start =
    run_at_finish =
    save_comments = false
    log_to_file = false

[I] End of PyInstaLive information screen.
----------------------------------------------------------------------
Command used

pyinstalive -u "johndoe" -p "grapefruits" -d "123456789"

Question

Is there a way to enable downloading via a user's id rather than the name? A user is more likely to change the name (while still retaining their old id) than to create a brand new account with a new id. Taengstagram's old livestream_dl was programmed to use the id but I do not see that parameter available on this project.

Not sure if it's possible currently, but if you can pass different settings files (via location) and destination save locations through a command line parameter, it'd be a great addition to the project you have here.

audio and video are saving separately how do I combine

- Expected behavior

Replay video

audio and video are saving separately how do I combine

Also getting following error when try to record video

[E] Could not stitch downloaded files: [Error 2] The system cannot find the file specified

- Actual behavior
- Steps to reproduce problem

ClientError: Bad Request: rate_limit_error

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I have installed the latest version of PyInstaLive: 2.4.9.
  • I have installed either Python 2.7.x or 3.5>=.
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10

To report a bug, fill in the information below.

Command used

pyinstalive -u "myuser" -p "password" -r "streameracc"

Behavior

[E] ClientError: Bad Request: rate_limit_error

(Code: 400, Response: {"message": "Please wait a few minutes before you try again.", "status": "fail", "error_type": "rate_limit_error"})

Steps to reproduce issue

I'm using batch script loop with interval 6 secs, it worked for a few minutes then error happened.

I can't download PyinstaLive because

I am using:

  • Windows 10
    I have Latest Version of PyInstaLive and Pyton but when i want to try download this script i am recieving this issue: http://prntscr.com/nigju9

I have installed how much files are required. I tried to download the script in the Admin Position, but I was still unsuccessful.
Can you help me? If necessary, I will ask you to enter my computer and solve the problem.

Problem whit instagram api New version

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.0.9.
  • I have installed either Python 2.7.x or 3.5+: 3.5
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

Question

Hi, days before i experimented a problem whit the assembled files, working with a versions realice that the new version of "instagram-api" who is installed by pyinstalive before a version 3.07 had a conflict with my OS and no work.
ยฟThere any way to install previous "instagram-api" with the new pyinstalive version?

no such option: --process-dependency-links

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • [] I am using the latest version of PyInstaLive: 3.0.6.
  • I have installed either Python 2.7.x or 3.5+: 2.7.15
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.0.6 - PYTHON V3.6.3) - 01-02-2019 07:00:17 PM
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        3.0.6
[I] Python version:             3.6.3
[I] FFmpeg framework:           Available
[I] Cookie files:               2 (johndoe.json matches config user)
[I] CLI supports color:         Yes
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = *removed*
    password = *removed*
    download_path = \path\to\downloads
    download_lives = True
    download_replays = True
    download_comments = True
    show_cookie_expiry = False
    ffmpeg_path =
    log_to_file = True
    run_at_start =
    run_at_finish =
    use_locks = True
    clear_temp_files = False

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

Paste the command here that you are running. Don't forget to omit your username and password.

Example: pyinstalive -u "johndoe" -p "grapefruits" -d "justinbieber"

Behavior

Accurately describe the issue you're experiencing with the script.

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

To ask a question, fill in the information below.

Question

this is what i get when put the commands

C:\Users\nikotz>pip install git+https://github.com/notcammy/[email protected] --process-dependency-links

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

no such option: --process-dependency-links

C:\Users\nikotz>pyinstalive --info
Traceback (most recent call last):
File "c:\python27\lib\runpy.py", line 174, in run_module_as_main
"main", fname, loader, pkg_name)
File "c:\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27\Scripts\pyinstalive.exe_main
.py", line 5, in
File "c:\python27\lib\site-packages\pyinstalive_main
.py", line 4, in
from .startup import run
File "c:\python27\lib\site-packages\pyinstalive\startup.py", line 7, in
from urllib.parse import urlparse
ImportError: No module named parse

Download livestream from the start

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 2.6.0.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: 10.13.6)
  • Other (device & OS name: )
Question

Is there any way where I can download the previous seconds or minutes of an ongoing instagram live that I missed? Let's say I was a minute late of someone's livestream, is there any way where it can backtrack and download the livestream FROM THE START? thank you!

Update for windows version

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

  • I am using the latest version of PyInstaLive: 3.1.1.
  • I have installed either Python 2.7.x or 3.5+: YOUR VERSION HERE
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To ask a question, fill in the information below.

Question

Thanks for your hard work, could you be kind and the update the windows version?

[Request] Visibility of me in the broadcast

  • I am using the latest version of PyInstaLive: 3.0.4.
  • I have installed either Python 2.7.x or 3.5+: 3.6
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

Question

Hi,
I saw your comment here taengstagram/instagram-livestream-downloader#18 and you said its possible to download lives without being visible in the current users watching list, by simply "Deleting L495 will disable that function as well and you won't get any errors clogging up the console."
can you add an argument to the script so its possible to do that ?

Traceback errors

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

  • I am using the latest version of PyInstaLive: 3.1.1.
  • I have installed either Python 2.7.x or 3.5+: Python 3.7.3
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

HERE IS THE OUTPUT:

[I] PYINSTALIVE (SCRIPT V3.1.1 - PYTHON V3.7.3) - 05-08-2019 12:58:24 PM

[E] An error occurred: No option 'verbose' in section: 'pyinstalive'
[E] Make sure the config file and given arguments are valid and try again.

Command used

Paste the command here that you are running. Don't forget to omit your username and password.
If you can reproduce the problem then, if possible, run the same command again with --verbose prior to uploading the log files.

Example: pyinstalive -u "johndoe" -p "grapefruits" -d "justinbieber"

HERE IS THE COMMAND THAT I'M USING: pyinstalive -u "" -p "" -d ""

Behavior

Accurately describe the issue you're experiencing with the script.

I GET THE FOLLOWING ERROR IN THE COMMAND LINE:

Traceback (most recent call last):
File "pyinstalive\startup.py", line 9, in
import urlparse
ModuleNotFoundError: No module named 'urlparse'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pyinstalive_main_.py", line 2, in
from startup import run
File "pyinstalive\startup.py", line 20, in
from . import pil
ImportError: attempted relative import with no known parent package

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\H\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\H\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "pyinstalive_main
.py", line 4, in
from .startup import run
ImportError: attempted relative import with no known parent package

C:\Users\H\Desktop\PyInstaLive-master>python pyinstalive -d "tikka.repz"
Traceback (most recent call last):
File "pyinstalive\startup.py", line 9, in
import urlparse
ModuleNotFoundError: No module named 'urlparse'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pyinstalive_main_.py", line 2, in
from startup import run
File "pyinstalive\startup.py", line 20, in
from . import pil
ImportError: attempted relative import with no known parent package

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\H\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\H\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "pyinstalive_main
.py", line 4, in
from .startup import run
ImportError: attempted relative import with no known parent package

AND HERE IS WHAT THE LOG FILE SAYS:

PYINSTALIVE (SCRIPT V3.1.1 - PYTHON V3.7.3) - 05-08-2019 12:37:48 PM

An error occurred: No option 'verbose' in section: 'pyinstalive'
Make sure the config file and given arguments are valid and try again.

Receiving UnboundLocalError & internal server error message

  • I have installed the latest version of PyInstaLive: 2.5.1.
  • I have installed either Python 2.7.x or 3.5>=.
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • macOS (version: 10.11.6)

To report a bug, fill in the information below.

Command used
pyinstalive -r "someones_username"
Behavior

Receiving the following error when running the script on certain users:

----------------------------------------------------------------------
PYINSTALIVE (SCRIPT V2.5.1 - PYTHON V2.7.14) - 12:26:57 AM
----------------------------------------------------------------------
[I] Using cached login cookie for "my_username".
[I] Login cookie expiry date: 2018-05-23 at 06:46:55 PM
[I] Getting info for "someones_username" successful.
----------------------------------------------------------------------
[I] Checking for livestreams and replays...
[E] Could not finish checking: Internal Server Error
Traceback (most recent call last):
  File "/usr/local/bin/pyinstalive", line 11, in <module>
    load_entry_point('pyinstalive==2.5.1', 'console_scripts', 'pyinstalive')()
  File "/usr/local/lib/python2.7/site-packages/pyinstalive/initialize.py", line 392, in run
    main(api, args.record, settings)
  File "/usr/local/lib/python2.7/site-packages/pyinstalive/downloader.py", line 28, in main
    get_user_info(user_to_record)
  File "/usr/local/lib/python2.7/site-packages/pyinstalive/downloader.py", line 246, in get_user_info
    get_broadcasts_info(user_id)
  File "/usr/local/lib/python2.7/site-packages/pyinstalive/downloader.py", line 264, in get_broadcasts_info
    if livestream:
UnboundLocalError: local variable 'livestream' referenced before assignment

This does not happen for other users, and the script runs successfully (whether they are doing a livestream, have a previous recording available, or neither):

----------------------------------------------------------------------
PYINSTALIVE (SCRIPT V2.5.1 - PYTHON V2.7.14) - 12:27:04 AM
----------------------------------------------------------------------
[I] Using cached login cookie for "my_username".
[I] Login cookie expiry date: 2018-05-23 at 06:46:55 PM
[I] Getting info for "a_different_username" successful.
----------------------------------------------------------------------
[I] Checking for livestreams and replays...
[I] There are no available livestreams.
[I] There are no available replays.
----------------------------------------------------------------------

Stuttering video problem and removing locks request

  • I am using the latest version of PyInstaLive: 2.5.9.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Linux (distribution: ubuntu 14.04)

Example:

$ pyinstalive --info
----------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V2.5.9 - PYTHON V2.7.12) - 09:31:30 PM
----------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:    	2.5.9
[I] Python version:         	2.7.12
[I] FFmpeg framework:       	Available
[I] Cookie files:            	1 (<REDACTED>.json matches config user)
[I] CLI supports color:     	Yes
[I] File to run at start:       None
[I] File to run at finish:      None

[I] Config file:

    [pyinstalive]
    username = <REDACTED>
    password = <REDACTED>
    save_path = /home/ubuntu/live
    ffmpeg_path =
    show_cookie_expiry = true
    clear_temp_files = true
    save_lives = true
    save_replays = true
    run_at_start =
    run_at_finish =
    save_comments = false
    log_to_file = false

[I] End of PyInstaLive information screen.
----------------------------------------------------------------------
Command used

pyinstalive -u "" -p "" -d "$acct" --configpath "/home/ubuntu/pyinstalive.ini" --savepath "/home/ubuntu/live/";

Behavior

Live video downloads successfully but couple seconds in the video starts stuttering, but the audio is fine. Not sure what the cause for this is, but it seems to be happening on different user live streams and not specific to one user.

Question

Additionally, I was wondering if there was a way to specify where to save the .lock files or disable them. I currently have a script that creates its own lock files so I would like to disable the in-built ones, but if the implementation is too difficult, then I would prefer specifying a location to create and read them. Currently, I have the application syncing up to different machines so the sync keeps creating and deleting these lock files creating a lot of unwanted notifications.

Cannot concatenate 'str' and 'NoneType' objects

- Expected behavior

Recording starts

- Actual behavior

Receive error

[I] Login to "account" OK!
[I] Login cookie expiry date: 2018-02-04 at 00:02:25
[E] Could not get user info: cannot concatenate 'str' and 'NoneType' objects
- Steps to reproduce problem

Install the script per instructions on README.md, configure pyinstalive.ini, and run pyinstalive -u "username" to begin recording

Python 2.7.10, Mac OS X

Missing word

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.1.0.
  • I have installed either Python 2.7.x or 3.5+: 3.7.2
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

There is no word "proxy = " in the sample of pyinstalive.ini on README.md

Live From Os Desktop

Hi Dear Can i Use some apps for example code with pycharm on my system and i want other people see my desktop and see pycharm window.
how can i do it?

Script didn't assemble chunks

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.1.0.
  • I have installed either Python 2.7.x or 3.5+: 3.6.4
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

PYINSTALIVE (SCRIPT V3.1.0 - PYTHON V3.6.4) - 05-01-2019 09:56:55 PM

Getting livestream heartbeat is disabled, this may cause degraded performance.

To see all the available arguments, use the -h argument.

PyInstaLive version: 3.1.0
Python version: 3.6.4
FFmpeg framework: Available
Cookie files: 3
CLI supports color: No
Command to run at start: None
Command to run at finish: None
Config file contents:

[pyinstalive]
username = **CENSORED**
password = **CENSORED**
download_path = C:\Users\Test\Downloads\InstaLive
download_lives = True
download_replays = True
download_comments = false
show_cookie_expiry = True
log_to_file = True
ffmpeg_path =
run_at_start =
run_at_finish =
use_locks = True
clear_temp_files = False
do_heartbeat = False
proxy =

End of PyInstaLive information screen.

Command used

pyinstalive_win.exe -as C:\Users\Test\Downloads\InstaLive\20190501_keshet_buskila_17846519749430689_1556720974_live_downloads.json

Behavior

Script didn't assemble chunks after recording live stream.

Steps to reproduce issue

I've typed the following command to assemble the temp chunk files:
pyinstalive_win.exe -as C:\Users\Test\Downloads\InstaLive\20190501_keshet_buskila_17846519749430689_1556720974_live_downloads.json

Log files

Please attach the log file of the user you were trying to download (if applicable) and the pyinstalive.default.log log file.
If any of the files exceed 10MB in size please use WeTransfer or a similar service to upload these files.

Suspicious Activity ClientError: Bad Request: challenge_required

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • [x ] I have installed the latest version of PyInstaLive: 2.2.8.
  • [x ] I have installed either Python 2.7.x or 2.5>=.
  • [x ] I have read the README.
  • [ x] I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • [ x] Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

Command used

Paste the command here that you are running. Remove any information like usernames and passwords.

Example: pyinstalive -u "johndoe" -p "grapefruits" -r "justinbieber"

Behavior

Accurately describe the issue you're experiencing with the script.

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

To ask a question, fill in the information below.

Question

Describe your question here as clear as possible.
I have this issue just today, when I use it to download live stream it always show error like this

[W] Unable to find auth cookie file: myusername.jso
[E] ClientError: Bad Request: challenge_required

and in my instagram app on my iphone it automatically logout and ask confirmation code via email beacuse of suspicious activity. I've tried few times, everytime I use pyinstalive it always detect as suspicious activity.
how do I fix this ? thank you.

404 Client Error

  • I am using the latest version of PyInstaLive: 3.1.0.
  • I have installed either Python 2.7.x or 3.5+: YOUR VERSION HERE
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (Ubuntu 19.04)
  • macOS (version: )
  • Other (device & OS name: )
PyInstaLive information
sudo -H pip3 install git+https://github.com/notcammy/[email protected] --process-dependency-links     
Collecting git+https://github.com/notcammy/[email protected]
  Cloning https://github.com/notcammy/PyInstaLive.git (to revision 3.1.0) to /tmp/pip-req-build-fg6hnyrd                                                             
DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release. A possible replacement is PEP 508 URL dependencies. You can find discussion regarding this at https://github.com/pypa/pip/issues/4187.
Collecting argparse (from pyinstalive==3.1.0)
  Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl         
Collecting configparser (from pyinstalive==3.1.0)
  Downloading https://files.pythonhosted.org/packages/ba/05/6c96328e92e625fc31445d24d75a2c92ef9ba34fc5b037fe69693c362a0d/configparser-3.7.4-py2.py3-none-any.whl     
Requirement already satisfied: instagram_private_api>=1.5.7 in /usr/local/lib/python3.7/dist-packages (from pyinstalive==3.1.0) (1.6.0)                              
Collecting instagram_private_api_extensions>=0.3.8 (from pyinstalive==3.1.0)
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/instagram-private-api-extensions/

Error 400

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 2.5.6.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10

  • Windows 8.1

  • Windows 8

  • Windows 7

  • Linux (distribution: )

  • macOS (version: )

  • Other (device & OS name: )

  • I am using the executable pyinstalive.exe which I downloaded from this page and I have installed the update needed to use it.

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
----------------------------------------------------------------------
PYINSTALIVE (SCRIPT V2.5.6 - PYTHON V3.6.3) - 11:50:00 AM
----------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        2.5.6
[I] Python version:             3.6.3
[I] FFmpeg framework:           Available
[I] Cookie files:               2 (username.json matches config user)
[I] CLI supports color:         Yes
[I] File to run at start:       None
[I] File to run at finish:      None

[I] Config file:

    [pyinstalive]
    username = johndoe
    password = grapefruits
    save_path = C:\path\to\downloads\
    show_cookie_expiry = true
    clear_temp_files = false
    save_replays = true
    run_at_start =
    run_at_finish =
    save_comments = true
    log_to_file = false

[I] End of PyInstaLive information screen.
----------------------------------------------------------------------
Command used

Paste the command here that you are running. Don't forget to omit your username and password.

Example: pyinstalive -u "johndoe" -p "grapefruits" -d "justinbieber"

Behavior

Accurately describe the issue you're experiencing with the script.

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

To ask a question, fill in the information below.

Question

Error
[E] Unexpected exception: checkpoint_challenge_required
[E] Message: challenge_required
[E] Code: 400

[E] Full response:
{"message": "challenge_required", "challenge": {"url": "https://i.instagram.com/challenge/4041050034/CfgMuK5nAJ/", "api_path": "/challenge/4041050034/CfgMuK5nAJ/", "hide_webview_header": true, "lock": true, "logout": false, "native_flow": true}, "status": "fail", "error_type": "checkpoint_challenge_required"}

[Errno 22] Invalid argument When Try to download Replay

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 2.5.3.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

To report a bug, fill in the information below.

Python version (if applicable)

python 3.5.4

Command used

pyinstalive -r targetIG

Behavior
----------------------------------------------------------------------
[I] Downloading replays... press [CTRL+C] to abort.
----------------------------------------------------------------------
[I] Downloading replay 1 of 1 with ID '17913947659170493'...
[E] Could not save replay: [Errno 22] Invalid argument: 'D:\\InstaLive/20180523_
targetIG_17913947659170493_1527093876_replay_downloads\\33148056_118291655718614_8624200296354021376_n.mp4?_nc_eui2=AeEFp8QXDnJH68Zmeq3uV-YC4ZJS9jZFgG4R4fKgLlsUk9xYeM2df3qZjWuuyecfig57tNHBhMuqyeEG8x2gZVkJ'
----------------------------------------------------------------------
Steps to reproduce issue

I just realized that I can't download replay, but I can download if it was Live stream not replay.
I don't know since when that I can't download replay, but I can download replay before with no problem.
I'm sure I didn't change anything (except changing to my new account) since the first time I installed pyinstalive and confirm it was working properly.
If I try to download replay, it always error [Errno 22] Invalid argument.
I've tried to reinstall all, and tried fresh installed pyinstalive and all its Prerequisites, but I still can't download replay.
what did I do wrong ? and how do I fix this ?
Thank you.

To ask a question, fill in the information below.

Question

Describe your question here as clear as possible.

Automatic recording

Many thanks, PyInstaLive for forking this script.
The problem is, I missed a lot of lives because of not in front of my computer.
So I would like to request a new feature for automatic recording.
Basically, the script will go loop through user's following list, then it opens a new window script to execute download every time it found a replay or an ongoing live stream. If it didn't find anything, it will just keep looping until it found a live stream.
For convenience, add a setting for looping delay.
Thanks!

dont show the compile video

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.0.8.
  • I have installed either Python 2.7.x or 3.5+: 3.5
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Run pyinstalive --info and paste its output below. Don't forget to omit your username and password.

Example:

$ pyinstalive --info
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.0.8 - PYTHON V3.6.3) - 01-02-2019 07:00:17 PM
---------------------------------------------------------------------------
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version:        3.0.8
[I] Python version:             3.6.3
[I] FFmpeg framework:           Available
[I] Cookie files:               2 (johndoe.json matches config user)
[I] CLI supports color:         Yes
[I] Command to run at start:    None
[I] Command to run at finish:   None
[I] Config file contents:

    [pyinstalive]
    username = *removed*
    password = *removed*
    download_path = \path\to\downloads
    download_lives = True
    download_replays = True
    download_comments = True
    show_cookie_expiry = False
    ffmpeg_path =
    log_to_file = True
    run_at_start =
    run_at_finish =
    use_locks = True
    clear_temp_files = False

[I] End of PyInstaLive information screen.
---------------------------------------------------------------------------
Command used

-df whit no download replay only live

Behavior

Hi, my issue is when i run the script work perfect, in cmd i put "pyinstalive -df" and everything work fine but after finish the striming live and compile the files they dont save anything the video is not there the issue only happend when i try to download a live, replay is working i thing iss something whit ffmpg but i reinstal and the problem continues please you have a advice for my i dont thing to be problem of the script

Steps to reproduce issue

Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

Log files

the log is normal

To ask a question, fill in the information below.

Question

Describe your question here as clear as possible.

New cmd pop up for each user

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • [x ] I am using the latest version of PyInstaLive: 2.5.5.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • [ x] Windows 10

  • Windows 8.1

  • Windows 8

  • Windows 7

  • Linux (distribution: )

  • macOS (version: )

  • Other (device & OS name: )

  • I am using the Windows executable pyinstalive.exe which I downloaded from this page.

  • I have installed the required update.

To ask a question, fill in the information below.

Feature request

I created two new files to support automatic recording

first, run.bat

:loop
for /F "tokens=*" %%A in (users.txt) do (
   pyinstalive -r %%A
   timeout /t 10
)
timeout /t 30
test&cls
goto loop

second, users.txt

aaa
bbb
ccc

Process:

run.bat will go loop while reading instagram user names from users.txt

Problem:

run.bat will stop looping if it founds a stream or replay to download.

Solution:

Creata a new function to open a new cmd windows every time it found a new stream or replay for each user so run.bat can continue loop through name.text while recording each user.

Add an option in .ini file if the user wants the script to open a new cmd window or not every time it found a new stream or replay to download.

[BUG] Heartbeat feature doesn't work

  • I am using the latest version of PyInstaLive: 3.0.6.
  • I have installed either Python 2.7.x or 3.5+: YOUR VERSION HERE
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

PYINSTALIVE (SCRIPT V3.0.6 - PYTHON V3.6.4) - 02-15-2019 09:56:06 PM

To see all the available arguments, use the -h argument.

PyInstaLive version: 3.0.6
Python version: 3.6.4
FFmpeg framework: Available
Cookie files: 3 (deleted matches config user)
CLI supports color: No
Command to run at start: None
Command to run at finish: None
Config file contents:

[pyinstalive]
username = *deleted*
password = *deleted*
download_path = C:\PyInstaStories-master\lives
download_lives = True
download_replays = True
download_comments = False
show_cookie_expiry = True
log_to_file = True
ffmpeg_path =
run_at_start =
run_at_finish =
use_locks = True
clear_temp_files = False
do_heartbeat = True
proxy =

End of PyInstaLive information screen.

Command used

Paste the command here that you are running. Don't forget to omit your username and password.
pyinstalive -u username -p password -df -nhb

To ask a question, fill in the information below.

Question

Heartbeat feature doesn't work, I entered the command above and tested it with my instagram to see if I would show up in the live stream, and I did. Looks like there something wrong...

-df Lives Only

  • I am using the latest version of PyInstaLive: 3.0.1.
  • I have installed either Python 2.7.x or 3.5>=. (If applicable)
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
Command used

pyinstalive -df -nr

Question

Is there a way to download livestreams only with the -df command? I tried doing -df along with -nr to download livestreams without replays but it doesn't work successfully.

ffmpeg not merge the video

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.0.8.
  • I have installed either Python 2.7.x or 3.5+: 3.5+
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

[I] PYINSTALIVE (SCRIPT V3.0.8 - PYTHON V3.5.4) - 03-06-2019 09:14:37 PM

[I] Overriding ffmpeg binary path: C:\ffmpeg\ffmpeg-20190304-db33283-win64-static\bin\ffmpeg.exe
[I] To see all the available arguments, use the -h argument.

[I] PyInstaLive version: 3.0.8
[I] Python version: 3.5.4
[I] FFmpeg framework: Available
[I] Cookie files: 2 (dd.pol.json matches config user)
[I] CLI supports color: No
[I] Command to run at start: None
[I] Command to run at finish: None
[I] Config file contents:

[pyinstalive]
username = ^^^^
password = ********
download_path = C:\Users\nikotz\insta\
download_lives = true
download_replays = false
download_comments = false
show_cookie_expiry = True
log_to_file = true
ffmpeg_path =C:\ffmpeg\ffmpeg-20190304-db33283-win64-static\bin\ffmpeg.exe
run_at_start =
run_at_finish =
use_locks = True
clear_temp_files = false
do_heartbeat = True
proxy =

[I] End of PyInstaLive information screen.


###### Command used

pyinstalive -d 
pyinstylive -as

###### Behavior
2 issues

1. when the user has a dot in her nick the ffmpeg not find the file

C:\Users\nikotz>pyinstalive -as C:\Users\nikotz\insta\20190305_patric.klecter_17965374313228324_1551767611_live_downloads
---------------------------------------------------------------------------
[I] PYINSTALIVE (SCRIPT V3.0.8 - PYTHON V3.5.4) - 03-06-2019 09:31:42 PM
---------------------------------------------------------------------------
[I] Overriding ffmpeg binary path: C:\ffmpeg\ffmpeg-20190304-db33283-win64-static\bin\ffmpeg.exe
[E] The segment directory does not exist or does not contain any files: C:\Users\nikotz\insta\20190305_patric
---------------------------------------------------------------------------
2.i have tu put an slash (\)and remove the dot in the name and in the end of the file path to ffmpg merge the video and the result is a video whidout name


3. 
in my windows dont work --dowload 
[pyinstalive_tgziam.log](https://github.com/notcammy/PyInstaLive/files/2939294/pyinstalive_tgziam.log)

C:\Users\nikotz\insta\/20190306_tgziam_17925066568301485_1551926873_live_downloads\source_17925066568301485_0_mp4.tmp: No such file or directory

###### Steps to reproduce issue
Specify the exact steps taken to reproduce the problem. If you can't reproduce the issue try to describe the steps you've taken that eventually resulted in the issue you have experienced.

###### Log files
[pyinstalive.default.log](https://github.com/notcammy/PyInstaLive/files/2939285/pyinstalive.default.log)


##

### To ask a question, fill in the information below.

###### Question
Describe your question here as clear as possible.

ImportError: No module named parse

Please check the boxes below by filling [ ] with an x so it looks like [x].

Remove all spaces already present in the box.
  • I am using the latest version of PyInstaLive: 3.0.9.
  • I have installed either Python 2.7.x or 3.5+: 2.7.15rc1
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: Ubuntu 18.04.2 LTS)
  • macOS (version: )
  • Other (device & OS name: )

To report a bug, fill in the information below.

PyInstaLive information

Traceback (most recent call last):
File "C:\Python27\Scripts\pyinstalive-script.py", line 11, in
load_entry_point('pyinstalive==3.0.9', 'console_scripts', 'pyinstalive')()
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 2793, in load_entry_point
return ep.load()
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 2411, in load
return self.resolve()
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 2417, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "c:\python27\lib\site-packages\pyinstalive_main_.py", line 4, in
from .startup import run
File "c:\python27\lib\site-packages\pyinstalive\startup.py", line 7, in
from urllib.parse import urlparse
ImportError: No module named parse

Same error in Linux and Windows

ConfigParser instance has no attribute '__getitem__'

- Expected behavior

Help/information output is displayed.

- Actual behavior

Receive error

AttributeError: ConfigParser instance has no attribute '__getitem__'

This can be fixed by changing lines 29, 30, 91, and 92 to use .get() instead of indices, e.g. config.get('pyinstalive', 'username') instead of config['pyinstalive']['username'].

- Steps to reproduce problem

Install the script per instructions on README.md, and run pyinstalive to show the help/information screen.

Python 2.7.10, Mac OS X

Skip Merging Downloaded Files Into Video

Fill in this template completely. Issues not following this template will be closed and ignored.

Check the boxes below by filling [ ] with an x so it looks like [x].

Use the Preview button to ensure the template is filled in correctly.

  • I am using the latest version of PyInstaLive: 3.1.3.
  • I have installed either Python 2.7.x or 3.5+: 3.5+
  • I have read the README.
  • I have read the FAQ.
  • I have checked all existing issues, none of which could solve my issue.

I am using:

  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Linux (distribution: )
  • macOS (version: )
  • Other (device & OS name: )

To ask a question, fill in the information below.

Question

Hi, is there (or is it possible to make) an option to skip merging downloaded files? Sometimes when livestreamer reached 1 hour limit they continue with a new livestream immediately. If you have a fast computer it's not really a problem bc it can merge files into video faster, but for slower computer it's a problem because it can't download new stream before finish merging files (especially using batch script). Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.