Skip to content

Commit

Permalink
filter a few more directories
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Oct 28, 2024
1 parent 19fa734 commit 95c81ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions data/images.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -40353,16 +40353,10 @@
{"id": "2015206", "uuid": "f2eb7110-c602-012f-55f4-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9e9cd68f-a25d-52d5-e040-e00a18063875", "photo_url": "https://images.nypl.org/?id=2015206&t=w", "date": null, "title": "New York City Map", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Manhattan (New York, N.Y.)", "New York (N.Y.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "Miller's New York as it is; or, Stranger's guide-book to the cities of New York, Brooklyn, and adjacent places ..."}
{"id": "2015208", "uuid": "7eeb1c60-c619-012f-1cec-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9e9e4132-f8f3-f88d-e040-e00a18063e7e", "photo_url": "https://images.nypl.org/?id=2015208&t=w", "date": null, "title": "Cycloid Railroad Construction & Equipment Co. Advertisement.", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": ["1890-1899"], "geographic": ["New York", "New York (N.Y.)", "New York (State)"], "topic": ["Description and travel", "Transportation"]}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "New York illustrated. / New York illustrated - 1894"}
{"id": "2015209", "uuid": "7aa08650-c604-012f-88bf-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9e9d918e-c0c2-081b-e040-e00a18063ad8", "photo_url": "https://images.nypl.org/?id=2015209&t=w", "date": null, "title": "Kings handbook of New York City, title page", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["New York (N.Y.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "Kings handbook of New York City ; an outline history and description of the American Metropolis ; with over one thousand illustrations ... Planned edited and pub. by Moses King."}
{"id": "2017455", "uuid": "c32a1940-0034-0130-9a11-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9f2cc8ec-5481-bd5b-e040-e00a180626af", "photo_url": "https://images.nypl.org/?id=2017455&t=w", "date": null, "title": "St. Joseph city directory ... (Front cover)", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Saint Joseph (Mo.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "St. Joseph city directory and business mirror ..."}
{"id": "2017456", "uuid": "c3a31c50-0034-0130-71da-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9f2cd46e-1a47-d326-e040-e00a180627a0", "photo_url": "https://images.nypl.org/?id=2017456&t=w", "date": null, "title": "St. Joseph city directory ... Part 1", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Saint Joseph (Mo.)"], "topic": []}, "back_id": "2017457", "back_text": null, "back_text_source": null, "address": "", "source": "St. Joseph city directory and business mirror ..."}
{"id": "2017520", "uuid": "c68e4f50-0034-0130-7958-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9f2cd881-32d3-52c1-e040-e00a18062705", "photo_url": "https://images.nypl.org/?id=2017520&t=w", "date": null, "title": "St. Joseph city directory ... Part 2", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Saint Joseph (Mo.)"], "topic": []}, "back_id": "2017521", "back_text": null, "back_text_source": null, "address": "", "source": "St. Joseph city directory and business mirror ..."}
{"id": "2017634", "uuid": "ca9826c0-0034-0130-df3e-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9f2cdcf7-14ca-e36a-e040-e00a1806283a", "photo_url": "https://images.nypl.org/?id=2017634&t=w", "date": null, "title": "St. Joseph city directory ... Part 3", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Saint Joseph (Mo.)"], "topic": []}, "back_id": "2017635", "back_text": null, "back_text_source": null, "address": "", "source": "St. Joseph city directory and business mirror ..."}
{"id": "2017663", "uuid": "cc8a11c0-0034-0130-fbba-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/9f2cd881-3345-52c1-e040-e00a18062705", "photo_url": "https://images.nypl.org/?id=2017663&t=w", "date": null, "title": "St. Joseph city directory ... Back cover", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Saint Joseph (Mo.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "St. Joseph city directory and business mirror ..."}
{"id": "2044111", "uuid": "7b609a80-c604-012f-9cd2-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/a4d2caab-a65c-3a74-e040-e00a18061980", "photo_url": "https://images.nypl.org/?id=2044111&t=w", "date": null, "title": "Alexander Somervell and wife, Cornelia Olivia (Sewell) Somervell", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": [], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "A history of the K\u00cd\u0097\u0091_gy relationship in America from 1715 to1900."}
{"id": "2046580", "uuid": "250a0c40-c60a-012f-c8bb-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/a524846e-4626-3960-e040-e00a18060519", "photo_url": "https://images.nypl.org/?id=2046580&t=w", "date": null, "title": "Stephen Van Rensselaer, II", "alt_title": [], "creator": null, "subject": {"name": ["Rensselaer, Kiliaen van, 1580?-1646", "Van Rensselaer family"], "temporal": [], "geographic": [], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "The Van Rensselaers of the manor of Rensselaerswyck."}
{"id": "2046581", "uuid": "25610470-c60a-012f-9f5a-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/a524846e-4627-3960-e040-e00a18060519", "photo_url": "https://images.nypl.org/?id=2046581&t=w", "date": null, "title": "Catherine Livingston", "alt_title": [], "creator": null, "subject": {"name": ["Rensselaer, Kiliaen van, 1580?-1646", "Van Rensselaer family"], "temporal": [], "geographic": [], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "The Van Rensselaers of the manor of Rensselaerswyck."}
{"id": "3884288", "uuid": "69e5c880-c602-012f-aa62-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/a7d0e925-f8ca-eff6-e040-e00a18060357", "photo_url": "https://images.nypl.org/?id=3884288&t=w", "date": null, "title": "Tremont Street and Temple Place, 1914", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Boston (Mass.)"], "topic": ["Description and travel"]}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "Days and ways in old Boston."}
{"id": "3961705", "uuid": "32f52db0-c618-012f-f857-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/af95534e-107d-099f-e040-e00a180656d6", "photo_url": "https://images.nypl.org/?id=3961705&t=w", "date": null, "title": "Doggett's New York Directory, [Shi-Sho]", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["New York (N.Y.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "Doggett's New-York City directory, for ... / Doggett's New-York City directory, for 1853-54"}
{"id": "3969329", "uuid": "7adc3f60-c602-012f-d264-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/b12b146f-dca6-d90b-e040-e00a18065649", "photo_url": "https://images.nypl.org/?id=3969329&t=w", "date": null, "title": "The Suburban Town of Ridley Park", "alt_title": [], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Ridley Park (Pa.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "Plan of the town of Ridley Park, Delaware County, Pennsylvania."}
{"id": "ps_lhg_cd22_69", "uuid": "3d2882d0-c604-012f-0e8e-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/510d47e1-c4df-a3d9-e040-e00a18064a99", "photo_url": "https://images.nypl.org/?id=ps_lhg_cd22_69&t=w", "date": null, "title": "A union of hearts and a union of hands", "alt_title": ["Finis coronat opus"], "creator": null, "subject": {"name": [], "temporal": [], "geographic": ["Brooklyn Bridge (New York, N.Y.)"], "topic": []}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "The daily graphic / 1883"}
{"id": "3984206", "uuid": "f8a36970-c5d6-012f-0556-58d385a7bc34", "url": "https://digitalcollections.nypl.org/items/b4afdefd-48ca-146a-e040-e00a180610a2", "photo_url": "https://images.nypl.org/?id=3984206&t=w", "date": null, "title": "United States Apartments, built 1882: Clinton St.- Atlantic Av-State St, Brooklyn", "alt_title": [], "creator": "New York (N.Y.). Tenement House Dept.", "subject": {"name": [], "temporal": ["1930-1939"], "geographic": ["New York", "New York (State)"], "topic": ["Tenement houses"]}, "back_id": null, "back_text": null, "back_text_source": null, "address": "", "source": "Photographs taken by inspectors of the New York City Tenement House Department / Vol. 1"}
Expand Down
2 changes: 1 addition & 1 deletion oldnyc/ingest/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def run():
if outside_nyc(geographics):
counters["filtered: outside nyc"] += 1
continue
if "Directories" in topics:
if ("Directories" in topics) or ("directory" in title2.lower()):
counters["filtered: directory"] += 1
continue

Expand Down

0 comments on commit 95c81ec

Please sign in to comment.