Skip to content

Instantly share code, notes, and snippets.

@mdweaver
mdweaver / chronicling_america-scraper.py
Created February 12, 2015 16:36
Script to search Chronicling America archive
#Script for scraping Chronicling America
import requests
import re
import csv
from bs4 import BeautifulSoup, SoupStrainer
import os
from time import sleep
from datetime import date, datetime, timedelta
#search_terms is a string of words separated by spaces.