No project description provided
Project description
SejmAPI
Python module to work with polish goverment-run Sejm API https://api.sejm.gov.pl/
Short overview
sejm = SejmApi(term=9) #creating SejmApi class object and selecting the term(in this case 9)
View list of all MPs
sejm.get_all_MP()
Get some details on the MP
sejm.get_MP_info(leg=1) #leg is the legitimation id
Get link to the MP's photo
sejm.getPhoto(leg=1)
Get list of clubs
sejm.getClubs()
Get info about the club
sejm.getClub_info(id='PiS') #id is the name of the club
Get a link to the logo of the club
sejm.getClublogo(id='PiS')
Get the list of the committees
sejm.getCommittees()
Get a list of the streams from Sejm
sejm.getStreams()
Get streams from today
sejm.getTodayStreams()
Get info about a term
sejm.getTermInfo()
Get all the prints of the term
sejm.getPrints()
Get the print details
sejm.getPrint_info(nr=1) #nr is the nr. of the print
Get the link to the attachment to the print
sejm.getPrint_attachment(nr=1,fileName='1.pdf')
CHANGELOG
Version 0.0.1 07/10/2023
- Added almost all functionalities
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sejmapi-0.1.0.tar.gz
(2.9 kB
view hashes)