civic-code

This repository is a suite of tools to enable the civic code project.
doc-search
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.
- Download the binary corresponding to your operating system.
- 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.