PyInstaLive icon indicating copy to clipboard operation
PyInstaLive copied to clipboard

is it possible to extract Firefox cookies and make username.json manually?

Open yuyoiuyoiu opened this issue 1 year ago • 6 comments

I've been having trouble logging into a new Instagram account with PyInstaLive recently, but the old non-expired JSON files still work well. Does anyone know how to extract cookies from Firefox to make a username.json manually for PyInstaLive?

[W] Unable to find cookie file: username.json [I] Creating a new one. [E] Could not login: {"message":"Please wait a few minutes before you try again.","require_login":true,"status":"fail"}

using PyInstaLive v3.2.4

yuyoiuyoiu avatar Jul 02 '24 15:07 yuyoiuyoiu

I made a fork that allows Netscape cookies to be loaded from a .txt file instead of the .dat file. I use this plugin to extract the cookies. Let me know if you have any issues running it

samuelchristlie avatar Aug 13 '24 08:08 samuelchristlie

I made a fork that allows Netscape cookies to be loaded from a .txt file instead of the .dat file. I use this plugin to extract the cookies. Let me know if you have any issues running it

Thank u very much man, i will test it !!

Milor123 avatar Aug 20 '24 17:08 Milor123

@samuelchristlie Thank you for the fork. Unfortunately I still can't record live stream with it. .dat file can be generated normally with cookies file but nothing can be downloaded. Instagram instantly shut down the access

[I] Livestream available, starting download.
---------------------------------------------------------------------------
[I] Downloading livestream, press [CTRL+C] to abort.
---------------------------------------------------------------------------
---------------------------------------------------------------------------
[E] The livestream host has possibly lost connection with Instagram.
---------------------------------------------------------------------------
[I] The livestream has been ended.
---------------------------------------------------------------------------
[I] Airing time  : 2 minutes and 19 seconds
[I] Downloaded   : 0 minute and 1 seconds
[I] Missing      : 2 minutes and 18 seconds

only an empty folder is added.

kdurov avatar Aug 21 '24 10:08 kdurov

@kdurov That's a separate issue, I'm currently working on it. Could you please create an issue on my fork?

samuelchristlie avatar Aug 22 '24 04:08 samuelchristlie

I'll keep you guys updated, next release should fix both this issue and https://github.com/dvingerh/PyInstaLive/issues/161 :)

Edit: Should work fine now

samuelchristlie avatar Aug 22 '24 05:08 samuelchristlie

@samuelchristlie Thank u very much, I will open issue in your fork if found some problem! I haven't tried your code yet, but I'm sure I will try it in the next few days, thanks for your effort. ❤️

Milor123 avatar Aug 23 '24 20:08 Milor123