Python interface for PRH corporate data
Open Data, Python 3
- Query data using simple syntax
- Complete access to the APIs and parameters provided by PRH
- Load query parameters from Excel file
- Generate template for query parameters
- Default queries for addresses, contact details et cetera
- Graphical User Interface
Python 3
Pandas
Requests
Querying the API for companies named Nokia and Fortum that are registered after year 2000
import finnish_business_portal as busportal
# Selecting BisCompany API
portal = busportal.SearchModel("BisCompany")
portal.search(name=["fortum", "nokia"], company_registration_from="2000-01-01")
portal.to_frame().results
Getting all available APIs
busportal.api_infos
and parameters
busportal.SearchModel("BisCompany").parameter_infos
Querying all information and saving to Excel:
portal = busportal.SearchModel("BisCompany", loop_results=True, deep=True)
portal.search(name=["fortum", "nokia"], company_registration_from="2000-01-01")
portal.to_frame().results.to_excel("mydata.xlsx")
Please see Demo for thorough examples
- Mikael Koli - Miksus - [email protected]
This project is licensed under the MIT License - see the LICENSE file for details