clnotify

command module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 10 Imported by: 0

README

clnotify

clnotify is a golang application to notify on Craigslist posts matching specific terms to a Discord webhook.

Usage

A configuration file is required:

craigslist.area_id can be found by searching: https://reference.craigslist.org/Areas search_distance is in KM searches[].categories can be found here: https://github.com/ecnepsnai/craigslist/blob/main/categories.md

For example, the following looks for "vintage" and "retro" in the computers for sale category of Vancouver's craigslist

{
    "craigslist": {
        "area_id": 16,
        "latitude": 49.2810,
        "longitude": -123.0400,
        "search_distance": 30
    },
    "discord": {
        "webhook_url": "https://discord.com/api/webhooks/..."
    },
    "searches": [
        {
            "categories": [ "sya" ],
            "query": "retro",
            "name": "Retro Computers"
        },
        {
            "categories": [ "sya" ],
            "query": "vintage",
            "name": "Vintage Computers",
            "ignore": [
                "dell"
            ]
        }
    ]
}

Documentation

Overview

Command clnotify is an application to search craigslist and send matching postings to a Discord webhook

Jump to

Keyboard shortcuts

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