civic-code

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2025 License: Apache-2.0

README

civic-code

Go Reference

This repository is a suite of tools to enable the civic code project.

Tools

doc-search is a tool for indexing PDF documents hosted by the City of Windsor. It leverages the web-scraping developed during the scraping council meetings project.

Features
  • Filter documents by year
  • Filter documents by a specific date or date range
  • Search documents based on meeting types
  • Filter documents by name or keywords
Installation

The tool is prebuilt for the following platforms:

  • Windows (amd64)
  • Linux (amd64)
  • macOS (arm64)
Download prebuilt binaries

You can download the prebuilt binaries from the Releases section.

  1. Download the binary corresponding to your operating system.
  2. Copy the binary to your PATH
Build from source
# 1. Clone the repository
git clone https://github.com/dntiontk/civic-code.git
cd civic-code/doc-search

# 2. Build the binary for your platform
GOOS=$(go env GOOS) GOARCH=$(go env GOARCH) go build -o doc-search main.go

# 3. Copy the binary to your `PATH`
Usage

The tool supports several flags for filtering documents:

Usage of bin/doc-search:
  -after string
        filter documents after date
  -before string
        filter documents before date
  -docName string
        filter documents with string in name
  -meetingType string
        filter documents by meeting type
  -year int
        filter documents by year (default -1)

Contributing

Contributions are welcome. Please open an issue or submit a pull request for any enhancements or bug fixes.

Directories

Path Synopsis
cmd
doc-search command
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL