Skip to content

KomarJazdek/SejmAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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')

About

Python module to work with polish goverment-run Sejm API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages