Automatic Connection
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
If you want to automatically close the connection then usage using the with
statement is supported.
with NYTAPI("Your API Key", parse_dates=True) as nyt:
nyt.most_viewed()