0.0.24 • Published 9 months ago

@arbetsmiljo/diarium v0.0.24

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

diarium

SQLite & web scraper tooling for work environment data

Modules

ModuleDescription
CaseReferred to as an "ärende" by Arbetsmiljöverket. Each case contains one or more documents. Cases may also optionally have one company, county, municipality, and workplace. Many cases have all of these. Some have none.
CompanyReferred to as either a "företag" or an "organisation" by Arbetsmiljöverket.
CountyThis is a "län" in Swedish. Sweden has 21 counties and Arbetsmiljöverket's data allows for a few other special cases outside that 21. Not all cases are associated with a county.
DatabaseCode related to SQLite3 lives here. That means all the logic for reading from and writing to the database.
DocumentDocuments are the protagonists of the diarium data model. Another appropriate English word for them would be "filings". Arbetsmiljöverket refers to them as "handlingar" in Swedish.
IngestionHigh-level orchestration of several other modules is managed here in order to ingest Arbetsmiljöverket's data into SQLite.
MunicipalityThis is a "kommun" in Swedish. There are 290 of these in Sweden. Just like with counties, Arbetsmiljöverket have a few special case values here outside the canonical 290 municipalities that actually exist in real life.
PaginationThe web search results on Arbetsmiljöverket's site are paginated. This is the code for paging through those results to determine what documents exist for a given date.
TimeWhat project is complete without a junk drawer of utility functions for date and time operations?
WorkplaceReferred to as an "arbetsplats" by Arbetsmiljöverket. Less interesting for companies with a single office or warehouse. More interesting in cases such as city ocuncils where one company might encompass hundreds of workplaces such as schools.

License

MIT

0.0.24

9 months ago

0.0.23

9 months ago

0.0.22

9 months ago

0.0.21

9 months ago

0.0.20

9 months ago

0.0.19

9 months ago

0.0.18

9 months ago

0.0.17

9 months ago

0.0.16

9 months ago

0.0.15

9 months ago

0.0.13

9 months ago

0.0.12

9 months ago

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago