Closed garrykevin-ep closed 10 months ago
same issue
Still getting the same error:
C:\Users\XX>swiggy-analytics --save Welcome to swiggy-analytics.
This command line tool will help you fetch your order history from https://swiggy.com. You can choose to persist the detailed order information in a SQLite database or perform lightweight stats operations using in-memory calculations.
Connecting to C:\Users\XX\swiggy.db
Traceback (most recent call last):
File "
IndexError: list index out of range
@mr-karan Karan, any luck with this issue?
Faced the same issue. But I am able to run if I build from the source locally and install it, instead of the package published on PyPi.
@mr-karan I think the issue is with user-agent, if a user-agent is not provided swiggy is returning a standard error page which says "We are fixing a temporary glitch. Sorry for the inconvenience." without a csrf-token
.
The last PyPi release was on Apr 28, 2019 and doesn't have the commit 58023827eb6f0ae38a353465d9bb7292e27daa88 which adds user-agent header in all the requests. Hence it's working when installed from a local build and not from PyPi. Will you be able to push a new release to PyPi?
This should be fine now with the latest release