sorry for complicated title and description. Please suggest the edits. Here is what I’m trying to do. I’m using python and requests library to hit a web hosted javascript file (url ending with .js)
URL -> https://www.icicibank.com/content/dam/icicibank/india/managed-assets/revamp-pages/fixed-deposits-all-pages/script/data.js
If you save this page, it gets saved as js file. I would like to get the interest rate data available on this page which is in the variable interestData. Further I would like to exclude commented lines with //.
Definitely, there is longer way to do it by considering it as string and doing all manipulations. I’m wondering is there way to precisely take the variable value of interestData into a python variable. Tricky part seems to be removal of commented lines.
Thanks in advance.