Library provides a pure Python interface for list-org.com site.
It works with Python 3 versions.
The library does not use the site api.
The site list-org.com provides full data on organizations - registration information, contacts, details, founders, statistical indicators - financial, accounting, production results.
Get organization by link
ListOrgParser = Parser()
org = ListOrgParser.parse("https://www.list-org.com/company/1")
res = vars(org)
for i in res:
print(i, " : ", res[i])Get the organization reporting
ListOrgParser = Parser()
org = ListOrgParser.parse_report("https://www.list-org.com/company/1")
print(org.years)
print(org.get_by_key_and_year("Итого по разделу I - Внеоборотные активы","2018"))Find an organization by INN
ListOrgParser = Parser()
orgs = ListOrgParser.search("4631002737", search_type="inn", limit=10)
print(orgs[0].organization_name)To install, you need to copy ListOrgLib.py to the project folder.
After that just import: from ListOrgLib import Parser