Catcher
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
catcher
etc/systemd
.gitignore
.scrutinizer.yml
LICENSE
README.md
__init__.py
composer.json
hidev.yml
requirements.txt
setup.cfg
setup.py

README.md

Catcher

GitHub version Scrutinizer Code Coverage Scrutinizer Code Quality

Use

To start single catcher:

./bin/catcher config.json start

To start and keep running desired number of catchers use systemd or docker.

Here are recommended systemd configuration files.

Main Configuration File

{
    "mainRefreshPeriod": {"minutes": 1},
    "domainsCheckPeriod": {"minutes": 10},
    "domainsReloadPeriod": {"minutes": 3},

    "domainsFilePath": "etc/my-domains.json",

    "epp": {
        "host":         "epp.verisign-grs.com",
        "port":         700,
        "bind":         "1.2.3.4",
        "login":        "mylogin",
        "password":     "mypassword",
        "certfile":     "ssl/my.com.cert",
        "keyfile":      "ssl/my.com.key",
        "ca_certs":     "ssl/my.com.intermediate"
    }
}

Domains List File

{
    "facebook.com": {
        "since": "2018-08-01 01:01:01",
        "weight": 100
    },
    "google.com": {
        "since": "2018-08-01 15:03:01",
        "weight": 200
    },
    "yahoo.com": {
        "since": "3018-08-01 15:04:30",
        "weight": 900
    },
    "example.com": {
        "since": "2018-08-01 15:03:01",
        "weight": 200,
        "taken-by": "regid"
    }
}

How it works

  • Reads main configuration file
  • Reads domain list file (rereads periodically)
  • Established single EPP connection
  • Sends as many domain:register commands as possible
  • Periodically checks domains list to mark already registered domains
  • Exits after configured period of time (set it to maximum allowed time for EPP connection)

License

This project is released under the terms of the BSD-3-Clause license. Read more here.

Copyright © 2018, HiQDev (http://hiqdev.com/)