Download historical options data and save it to your workspace in csv format. Banknifty and Nifty codes with weekly expiries.
Add your APi keys and start playing around.
You can download the data of two consecutive dates for near and next week expiry in same file. If you need some help to change some parameters just create an issue and I'll help you out.