Giter VIP home page Giter VIP logo

botovh's Introduction

BotOVH

BotOVH is a tiny bot I wrote for my personnal needs.

Is your domain name already taken? Tell BotOVH to grab it for you when it becomes available for registration.

Requirements

Installation

1. Install BotOVH using pip

pip install botovh

BotOVH automatically installs the following dependencies:

2. Create an OVH API application

To interact with the OVH APIs, BotOVH needs to identify itself using an application_key and an application_secret. To get them, you need to register your application.

Once created, you will obtain an application key and an application secret.

3. Configure BotOVH

Create an botovh.conf configuration file at :

  • Windows : C:\Users\<YOUR_WINDOWS_USERNAME>\.botovh\botovh.conf

  • Linux / Mac : /etc/botovh.conf

Here is how the configuration file looks like :

OVH API

[OVH]
ENDPOINT=ovh-eu
APPLICATION_KEY=<YOUR_APPLICATION_KEY>
APPLICATION_SECRET=<YOUR_APPLICATION_SECRET>
; Use 'botovh --key' to request your OVH consumer key.
CONSUMER_KEY=<YOUR__CONSUMER_KEY>

Email notification

[SMTP]
; Send email notification.
HOST=<SMTP_SERVER_ADDRESS>
PORT=465
USER=<YOUR_SMTP_USER>
PASSWORD=<YOUR_SMTP_PASSWORD>
SEND_FROM=<SEND_EMAIL_FROM>
SEND_TO=<SEND_EMAIL_TO>

Usage

Request a new OVH consumer key:

$ botovh -k

$ botovh --key

Basic usage:

$ botovh example.com fakedomain.org

Specify a file containing the domain names you want to check:

$ botovh -f /path/to/file.txt

$ botovh --file /path/to/file.txt

Specify your preferred payment method:

Payment methods: bankAccount, creditCard, fidelityAccount, ovhAccount or paypal.

$ botovh -p paypal

$ botovh --payment creditCard

Disable console logging using the --quiet argument:

$ botovh example.com fakedomain.org --quiet

Disable email notification using the --noemail argument:

$ botovh example.com fakedomain.org --noemail

Automate BotOVH

You can automate BotOVH to run daily using cron jobs or task scheduler depending on your system.

License

This code is released under a free software license and you are welcome to fork it.

botovh's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.