In [13]:
import pandas as pd
import pickle
from nytimesarticle import articleAPI
from library.merge import pickle_to_list
from library.get import get_date, get_1000_articles, convert, get_nyt_article_stats, get_date, get_last_date_plus_one
In [3]:
api_key = 'your_api_key'
api = articleAPI(api_key)
In [4]:
start_date = '19781114'
list_78 = get_1000_articles(api, 'marijuana', start_date)