Skip to content

Miksus/finnish_business_portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finnish Business Portal

Python interface for PRH corporate data

Open Data, Python 3


Features

  • Query data using simple syntax
  • Complete access to the APIs and parameters provided by PRH

Upcoming Features

  • Load query parameters from Excel file
  • Generate template for query parameters
  • Default queries for addresses, contact details et cetera

Possible Features

  • Graphical User Interface

Prerequisites

Python 3
Pandas
Requests

Example

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


Author


License

This project is licensed under the MIT License - see the LICENSE file for details

Releases

No releases published

Packages

No packages published

Languages