I have been trying to look at the IMDP API through this tsv file https://datasets.imdbws.com/name.basics.tsv.gz". I however I am at a point where I keep on getting this error.
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-6-cfcd2677a0e6> in <module>
----> 1 TsvHandler("https://datasets.imdbws.com/name.basics.tsv.gz")
<ipython-input-4-a2aea9b9f867> in __init__(self, url)
4 # Example of download url: https://datasets.imdbws.com/title.basics.tsv.gz
5 self.url = url
----> 6 data_dir = pathlib.Path(__file__).parent.parent.parent.resolve()
7 self.download_location = os.path.join(data_dir, "data/temp") # "../../data/temp"
8 self.filename = self.url.split('/')[-1]
NameError: name '__file__' is not defined