For the complete documentation index, see llms.txt. This page is also available as Markdown.

Automatic Connection

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()

Last updated