Skip to content

wegar-2/pyespiebipapapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyespiebipapapi

Flake8 Lint Check

ESPI, EBI and PAP

This package provides interface for retrieval of data published at the ESPI and EBI news website of PAP.

PAP is Polish Press Agency (Polish: Polska Agencja Prasowa).

The two eponymous news systems from which the news are sourced are:

  • ESPI - Polish: Elektroniczny System Przekazywania Informacji, English: Electronic System for Information Transfer
  • EBI - Polish: Elektroniczna Baza Informacji, English: Electronic Information Base

Installation

This package is in development and is not yet published at PyPI. You can install it by running:

pip install git+https://github.com/wegar-2/py-espi-ebi-pap.git@master

Examples

Retrieve All Entries Published on a Given Date

from datetime import date
from pyespiebipapapi import scrape_date_entries

entries = scrape_date_entries(date(2026, 2, 6))

Get bs4 Soup from Node by ID

from pyespiebipapapi import make_node_soup

node = make_node_soup(node_id=715_032)

Check if Node is an ESPI or EBI Node

from pyespiebipapapi import extract_node_source, make_node_soup

source = extract_node_source(
    node_soup=make_node_soup(node_id=715_032)
)
print(f"{source=}")

Parse Single ESPI Node

from pyespiebipapapi import parse_espi_node_soup, make_node_soup

node_data = parse_espi_node_soup(
    soup=make_node_soup(node_id=715_032)
)

Releases

No releases published

Packages

No packages published

Languages