• Stars
    star
    214
  • Rank 178,560 (Top 4 %)
  • Language
    Python
  • Created over 12 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Check domain name availability from the command line.

dom

An easy-to-use command line utility for checking domain name availability using Domainr's JSON API.

Example of dom in action

Setup requires two things:

  1. Installing dom
  2. Obtaining an API key

Installation

The simplest method is to install the package through pip by running:

pip install dom

Alternatively, you can install from source:

  1. Clone the repo:

    $ git clone [email protected]:zachwill/dom.git
    $ cd dom

  2. Run the following command to install: python setup.py install

Get an API key for Domainr

Due to abuse of their API, Domainr now requires an API key for each user. This key can be obtained through one of the following ways:

  1. Get a Rapidapi Domainr API key from Rapidapi Note: While it is free up to 10,000 calls/mo., you are required to submit a valid credit card to cover any requests over the free limit.
    • You can use something like Privacy.com to create a credit temporary card. I've been told that some banks offer a similar feature as well.
  2. Contact Domainr at [email protected] to get a personal use client ID, as detailed here

Once you have obtained one of the two types of keys, insert either the Rapidapi API key or the Client ID into your local environment:

$ export DOMAINR_RAPIDAPI_KEY={your-rapidapi-key}

or

$ export DOMAINR_CLIENT_ID={your-client-id}

You can do this manually everytime before running dom, or you can search for how to do this on login. Digital Ocean has an excellent guide here: How To Read and Set Environmental and Shell Variables on a Linux VPS.

Note that in the event that both keys are present, dom will default to using the Rapidapi Key.

Optional Flags

The optional --ascii flag can be used to look up domain availability without the use of the Unicode characters.

dom --ascii zachwill

X  zachwill.com
A  zachwill.net
A  zachwill.org
A  zachwill.co
X  za.ch
X  z.ac

The --available flag only shows domain names that are currently available:

dom --available zachwill

βœ“  zachwill.net
βœ“  zachwill.org
βœ“  zachwill.co
βœ“  zachwill.io
βœ“  zachwill.me

The --no-suggest flag only check the exact domain names that are in query:

dom --no-suggest zachwill.com

βœ—  zachwill.com

And, the --tld flag only shows top-level domains:

dom --tld zachwill

βœ—  zachwill.com
βœ“  zachwill.net
βœ“  zachwill.org

Deploying

You won't need to worry about this, but since the Python upload command is so obtuse, I'm going to keep it here:

python setup.py sdist bdist_egg upload

More Repositories

1

moment

A Python library for dealing with dates
Python
724
star
2

flask_heroku

An easy-to-use Flask template for Heroku.
CSS
447
star
3

flask-engine

A Flask skeleton for Google App Engine, using html5 boilerplate templating.
Python
177
star
4

fred

Python wrapper for the St. Louis Fed's FRED API.
Python
161
star
5

cracking-the-coding-interview

Python solutions for the book Cracking the Coding Interview
Python
124
star
6

asciifi

Turn your pictures into ASCII art
JavaScript
98
star
7

rottentomatoes

Rotten Tomatoes API for Python
Python
87
star
8

excssive

A drag and drop CSS compressor
JavaScript
58
star
9

markdrop

Drag and drop Markdown previews
JavaScript
48
star
10

pjax_flask

Testing out Flask with PJAX
JavaScript
43
star
11

hn

An easy-to-use CLI for HNSearch's API.
Python
31
star
12

ESPN-Basketball

An outdated ESPN Play-By-Play scraper... Not worth your time. Make your own!
Python
29
star
13

golf

Python
28
star
14

heroku_static

Serve all the things!
HTML
26
star
15

dotfiles

Command line goodness
Shell
19
star
16

cookiecutter-scrapy

A simple cookiecutter template for Scrapy projects
Python
18
star
17

dribbble

A simple Python wrapper for the Dribbble API
Python
10
star
18

mapq

An easy-to-use wrapper for the Mapquest Geocoding API.
Python
10
star
19

tumblr

An API wrapper for working with Tumblr and Tumblr's OAuth
Python
9
star
20

drinkups

Objective-C
9
star
21

beautiful_maps

A page-based iOS app highlighting some of Stamen's awesome maps.
Objective-C
8
star
22

darksky

A simple Python wrapper for the Dark Sky API
Python
7
star
23

blog

Current website.
JavaScript
7
star
24

usps_zipcodes

Scrape ZIP Codes from the USPS for a given city and state list.
Python
6
star
25

relaxml

Converting XML should be easy -- and fast.
Python
5
star
26

leetcode

Scraping Leetcode's GraphQL endpoint with Scrapy
Python
5
star
27

flask_cloud

A Flask template to get up and running with DotCloud.
JavaScript
5
star
28

github.vim

Github color scheme for iTerm vim
Vim Script
5
star
29

playing-with-pulp

Playing around with PuLP in Python
Jupyter Notebook
4
star
30

mcmc

Kruschke "Doing Bayesian Data Analysis" and Gelman/Hill "ARM" in PyMC3
Jupyter Notebook
4
star
31

covid-19

My simple COVID-19 death-to-recovery rate model
Jupyter Notebook
4
star
32

smsified

Sending SMS messages should be dead simple.
Python
4
star
33

zappa_template

An easy-to-use template for Zappa and CoffeeScript on Heroku
JavaScript
4
star
34

old

My personal website.
JavaScript
4
star
35

abhi_ipsum

Lorem ipsum with some panache
JavaScript
4
star
36

xml2dict

Fork of xml2dict project
Python
4
star
37

espn_ncaab

CoffeeScript
3
star
38

bittorrent-challenge

Python solution to the BitTorrent Developer Challenge
Python
3
star
39

random

CoffeeScript
3
star
40

bootmaker

Automated Bootstrap workflow
2
star
41

sinatra_template

A simple Sinatra template
JavaScript
2
star
42

background_color

A small app to help learn Backbone.js
JavaScript
2
star
43

madewithdata

Concept site for exploring data APIs.
JavaScript
2
star
44

stamen_maps

A simple UIWebView used to grab screenshots of Stamen's maps.
Objective-C
2
star
45

amazon-reviewers

Find profiles of reviewers who gave the same rating for a product.
Python
2
star
46

import_screencast

JavaScript
2
star
47

applescripts

Simple AppleScript examples.
2
star
48

import_zach

Because the name was available on PyPI.
Python
2
star
49

rebus_generator

ITA's Rebus Generator Puzzle
Python
2
star
50

abhi.info

Because the domain was available
JavaScript
1
star
51

img64

A service to base64 encode external image links
JavaScript
1
star
52

practical_c

Solutions to exercises in the Practical C book.
C
1
star
53

status

Objective-C
1
star
54

domainsaurus

An easy-to-use mashup connecting Domainr's API with Wordnik's API
JavaScript
1
star
55

tatooine

A map of Tunisia with all marked Star Wars locations.
JavaScript
1
star
56

heroku_relaxml

A gut server that makes dealing with XML a whole lot easier.
JavaScript
1
star
57

popcorndoc.js

My fork of the popcorndoc.js plugin for Popcorn.js
JavaScript
1
star
58

wadsworth_constant

A Python script that returns the Wadsworth Constant for input
Python
1
star
59

zippy

A simple wrapper for the Ziptastic ZIPCode API.
Python
1
star
60

word_dump

Python
1
star
61

xcode_textmate_theme

An XCode 4 color scheme from the theme I use in Vim and TextMate.
1
star
62

simplest

Working with Redis should be simple and Pythonic
Python
1
star
63

cookiecutter-streamlit

A quick cookiecutter template for creating Streamlit sites
Python
1
star
64

boardgames

Find new boardgames to play
Jupyter Notebook
1
star
65

lr

JavaScript
1
star
66

holy_catchphrase

Catchphrases and action words from the Adam West Batman show
JavaScript
1
star
67

epa_pcs_zip_codes

EPA permits to pollute public water sources by ZIP Code.
Python
1
star
68

backbone_zombie_test

A simple Backbone.js testing example using Vows and Zombie.js
CoffeeScript
1
star
69

bootstrap_tutorials

Quick Bootstrap tutorials
JavaScript
1
star