doc-search

command
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

README

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)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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