Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to retrieve bhavcopy from 8th July 2024 #81

Open
ElisonSherton opened this issue Jul 13, 2024 · 7 comments
Open

Not able to retrieve bhavcopy from 8th July 2024 #81

ElisonSherton opened this issue Jul 13, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@ElisonSherton
Copy link

Issue description

I use the package to extract bhavcopies using bhavcopy_save function but that raises an BadZipFile Error for all the dates starting from 8th July to 12th July (i.e. at the time of reporting this bug)

image

Example Code

from jugaad_data.nse import bhavcopy_save
from datetime import datetime
pth = bhavcopy_save(datetime(2024, 7, 12), ".")

Error snippet

---------------------------------------------------------------------------
BadZipFile                                Traceback (most recent call last)
<ipython-input-7-799f68c8fd92> in <cell line: 2>()
      1 from jugaad_data.nse import bhavcopy_save
----> 2 pth = bhavcopy_save(datetime(2024, 7, 12), ".")

3 frames
/usr/lib/python3.10/zipfile.py in _RealGetContents(self)
   1336             raise BadZipFile("File is not a zip file")
   1337         if not endrec:
-> 1338             raise BadZipFile("File is not a zip file")
   1339         if self.debug > 1:
   1340             print(endrec)

BadZipFile: File is not a zip file
@ElisonSherton ElisonSherton added the bug Something isn't working label Jul 13, 2024
@kushal-goenka
Copy link

The old format was decommissioned, there is a Unified Distilled File Format from 8th July onwards, UDiff. I've opened a PR for the same

@ElisonSherton
Copy link
Author

Thanks for the update!

@dkafka-sounak
Copy link

The old format was decommissioned, there is a Unified Distilled File Format from 8th July onwards, UDiff. I've opened a PR for the same

Can you tell me how can i find a workaround?

@SanjibBanerjee
Copy link

Any luck or workaround for this issue ?

@SanjibBanerjee
Copy link

The old format was decommissioned, there is a Unified Distilled File Format from 8th July onwards, UDiff. I've opened a PR for the same
any workaorund Kushal ?

@kushal-goenka
Copy link

I'm still waiting on that PR approval. I guess you could make the changes locally yourself, or use the fork in the meanwhile

@vidhyadharpandit
Copy link

Hey .. is this issue addressed in recent code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants