Wrapper for the DDB API
- Query the DDB API for Newspapers
- returns a Pandas Dataframe Object
Usage:
from ddbapi import zp_issues, zp_pages, list_column, filter
df = zp_issues(publication_date='[1600-09-01T12:00:00Z TO 1699-12-31T12:00:00Z]')
print(df)
zp_issues
- Returns a DataFrame containing Data on Newspaper-Issues.
- Use any combination of these keyword arguments:
language: Use ISO Codes, currentlyger,eng,fre,spa,itaplace_of_distribution: Search inside "Verbreitungsort", use a list for multiple search-wordspublication_date: Get newspapers by publication date. Use the following format:1900-12-31T12:00:00Zfor a specific date, use square brackets andTObetween two dates to get a daterange like so:publication_date='[1935-09-01T12:00:00Z TO 1935-09-22T12:00:00Z]'- time is always12:00:00Z.zdb_id: Search by ZDB-IDprovider: Search by Data Providerpaper_title: Search inside the title of the Newspaper
zp_pages
- Returns a DataFrame containing Data on Newspaper-Pages.
- Use any combination of these keyword arguments:
plainpagefulltext: Search inside the OCR Fulltext (Use a list for multiple search-words)language: Use ISO Codes, currentlyger,eng,fre,spa,itaplace_of_distribution: Search inside "Verbreitungsort", use a list for multiple search-wordspublication_date: Get newspapers by publication date. Use the following format:1900-12-31T12:00:00Zfor a specific date, use square brackets andTObetween two dates to get a daterange like so:publication_date='[1935-09-01T12:00:00Z TO 1935-09-22T12:00:00Z]'- time is always12:00:00Z.zdb_id: Search by ZDB-IDprovider: Search by Data Providerpaper_title: Search inside the title of the Newspaper
- Values of keyword arguments may contain lists to combine queries.
- Use
list_columnandfilterto perform usual Pandas Operations on list-containing Columns (eg.list_column(df['place_of_distribution']).value_counts()orfilter('Altona', 'place_of_distribution', df))
Metadata
Release files for ddbapi 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ddbapi-0.1.2.tar.gz | 5.2 kB | Without provenance | Details for ddbapi-0.1.2.tar.gz |
Release files / ddbapi-0.1.2.tar.gz
| Download URL | ddbapi-0.1.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58e87eea5ff849504aa3a73a5ddeeb72e9db6c6791afbc519f4a9d39e2d253cd
|
|
BLAKE2b-256 checksum How to use checksums |
d9ff4e25d32ee946d734b497e11266bd52ce6199016a84f4ce4fc3a3a6145c8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for ddbapi 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.