tensojka / instastories-backup Goto Github PK
View Code? Open in Web Editor NEWBackup your friends' Instagram Stories forever and get to keep them even after 24 hours.
License: MIT License
Backup your friends' Instagram Stories forever and get to keep them even after 24 hours.
License: MIT License
It worked few months well but now I'm getting this error. I have changed my Instagram cookies to a different account but still getting this error.
Loading new entries to DB Traceback (most recent call last): File "main.py", line 26, in <module> for item in response['items']: KeyError: 'items'
Traceback (most recent call last):
File "main.py", line 9, in <module>
prefs = json.load(json_data)
File "/usr/lib/python3.5/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 65 (char 229)
I've added the cookie and IDs of a couple users but am just presented with what you see above. Perhaps Instagram has made changes to stories that's broken the script?
hi i trying your script but keep getting 400 status code any idea on how to solve it ?
here is the output :
python3 main.py
Loading new entries to DB
ERROR: got 400 when fetching stories entries!
Traceback (most recent call last):
File "main.py", line 26, in
for item in response['items']:
KeyError: 'items'
After parsing the json I get this error. It does manage to rewrite usernames into ids.
ERROR: got 400 when fetching stories entries! Response: {"message": "login_required", "logout_reason": 2, "status": "fail"}
I entered the correct username and password but no cookie, since its (probably?) not needed because I don't use 2FA.
It worked fine few weeks. But now I'm getting this error.
Traceback (most recent call last): File "main.py", line 16, in <module> c.execute("CREATE TABLE IF NOT EXISTS
entries (
id TEXT UNIQUE,
url TEXT,
userid TEXT,
usernameTEXT,
taken_atINTEGER,
filename TEXT);") sqlite3.DatabaseError: file is encrypted or is not a database
https://www.instagram.com/username/?__a=1 returns HTTP ERROR 403 without proper user-specific header/cookie settings (one header setting for one user seems not working for another).
i compared 2 different /?__a=1
requests and there were at least 3 key/value pairs changed, among which x-instagram-gis
in the header might be crucial.
is this due to some API change by Ins. ?
`Traceback (most recent call last):
File "./manage.py", line 119, in
startup = importlib.import_module(edx_args.startup)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/edx/app/edxapp/edx-platform/lms/startup.py", line 9, in
settings.INSTALLED_APPS # pylint: disable=pointless-statement
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/init.py", line 56, in getattr
self._setup(name)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/init.py", line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/edx/app/edxapp/edx-platform/lms/envs/devstack_docker.py", line 3, in
from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import
File "/edx/app/edxapp/edx-platform/lms/envs/devstack.py", line 8, in
from .production import * # pylint: disable=wildcard-import, unused-wildcard-import
File "/edx/app/edxapp/edx-platform/lms/envs/production.py", line 108, in
ENV_TOKENS = json.load(env_file)
File "/usr/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 44 column 31 (char 1721)
this is add in my setting file and give that error
"ADDL_INSTALLED_APPS": [
"REGISTRATION_EXTENSION_FORM": "lms.djangoapps.my_login.forms.UserForm"
],
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.