Giter VIP home page Giter VIP logo

utils-api-cloudflare's Introduction

utils-api-cloudflare

This python script faciliates retrieving domain data from Cloudflare via its API. Requires reference to a file containing API key data. Will retrieve live/active domains and all records for each of those domains. The resulting record sets are saved as a CSV.

The API key data file should contain the following three values in the specified order. These values are needed for the API calls to be made against your specific account. Any lines in the file that start with a hashtag (#) are treated as comments and ignored.

  1. Cloudflare Account ID
  2. API key owner's email address
  3. API key

Example API key data file contents:

#CF ACC ID
7c277xxxxxxxxxxxxxxxxxxxxxx5f2da
#Email
[email protected]
#API key
D1A9FxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxNJ3IK

Usage:

python utils-api-cloudflare_v0.1.py -k cfapikey.cfg
python utils-api-cloudflare_v0.1.py -k /home/jdjalm/cfapikey.cfg -s /var/backups/cloudflare/

Possible future features:

  1. Add option to attempt to retrieve any status domain
  2. Add option to retrieve records for <=60 domains without artificial delay
  3. Add option to save all records in one file
  4. Support pagination on the call responses

utils-api-cloudflare's People

Contributors

jdjalm avatar

Watchers

 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.