Coder Social home page Coder Social logo

tensojka / instastories-backup Goto Github PK

View Code? Open in Web Editor NEW
85.0 85.0 20.0 23 KB

Backup your friends' Instagram Stories forever and get to keep them even after 24 hours.

License: MIT License

Python 100.00%
backup crawler instagram instagram-stories python python-3-6 python3

instastories-backup's People

Contributors

billcccheng 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instastories-backup's Issues

KeyError: 'items'

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'

JSONDecodeError: Expecting ',' delimiter: line 9 column 65 (char 229)

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?

error got 400 when fetching stories

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'

400 Login Error

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.

sqlite3.DatabaseError: file is encrypted or is not a database

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

this is add in my setting file and give that error

`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"
],
`

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.