GithubHelp home page GithubHelp logo

buschbirk / cvrdata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gronlund/cvrdata

0.0 0.0 0.0 284 KB

Extract data from danish CVR registry from Danish Business Authority

License: MIT License

Python 100.00%

cvrdata's Introduction

cvrdata

This is a Python3 package for extracting data from danish CVR registry from Danish Business Authority and inserting in an sql database.

You need to get username and password from the Danish Business Authority to access the data on their servers, alas to use this package for anything.

If you use this script to fetch data for academic purposes please cite it as follows (BibTeX):

@misc{erst_data,
  author = {Allan Gr{\o}nlund and Jesper Sindahl Nielsen},
  title = {Danish {B}usiness {A}uthority {D}ata {F}etcher},
  year = {2017},
  howpublished = {\url{https://github.com/jasn/regnskaber}}
}

Setup

The module can be installed using pip after installing the dependencies mentioned earlier. Run the following command:

pip install git+https://github.com/gronlund/cvrdata

Only works with elasticsearch 6

Command Line Interface

To use the program from the cmd line use

python -m cvrparser <command>

Configuration

To setup database and username and password to use to download from Danish Business Authority servers use

python -m cvrparser reconfigure

Database Tools

To create the database tables use

python -m cvrparser dbsetup -t

Get Data

To update the cvr database run

python -m cvrparser update

Notice that running from an empty database is faster than updating and existing but old version of the data.

To insert DBA registrations run

python -m cvrparser get_regs

cvrdata's People

Contributors

buschbirk avatar gronlund avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.