pynytimes
  • Introduction to pynytimes
  • Getting Started
    • Installation
    • Usage
    • Citation
  • Search
    • Article Search
    • Book Reviews
    • Movie Reviews
  • Popular
    • Top Stories
    • Most Viewed
    • Most Shared
    • Best Sellers Lists
  • Metadata
    • Article Metadata
    • Archive Metadata
    • Latest Articles
  • Other
    • Tags
  • Advanced Usage
    • Close Connection
    • Automatic Connection
  • Repository
  • PyPI
Powered by GitBook
On this page
  • Usage
  • Parameters
  • Example

Was this helpful?

Edit on GitHub
  1. Metadata

Archive Metadata

Load all metadata from a specific month. Note: This loads a very large JSON file (~20 MB), thus likely it takes a while.

Usage

NYTAPI.archive_metadata(date)

Parameters

Variables
Description
Data type
Required

date

Date of month of all the metadata

datetime.datetime

True

Example

import datetime

data = nyt.archive_metadata(
    date = datetime.datetime(2019, 1, 1)
)
PreviousArticle MetadataNextLatest Articles

Last updated 2 years ago

Was this helpful?