Skip to content
Advertisement

Tag: python

How get data stored in vars from a js file in python

I have a js file that I need to get data out of but I am not sure how to get the data out in the way I want. I would like it to be readable and subscriptable like a python dict(like dict[“key/value”]). just opening the file returns an <class ‘_io.TextIOWrapper’> but that doesn’t seem to be what I want.

Advertisement