Skip to main content

No project description provided

Project description

Introduction

This project provides IP range data of multiple CDN vendors via a Python package named cdnmon.

Installation

pip install -i https://pypi.org/simple/ cdnmon

Usage

from cdnmon import CDN

# Get a CDN by name
cloudflare = CDN("cloudflare")

# Get the latest version of the CDN data
cloudflare.update()

# Get the IP ranges of a specific CDN
cloudflare.ipv4_prefixes()
cloudflare.ipv6_prefixes()

# Get an example subscriber domain of the given CDN
cloudflare.subscribers()

TODO

  • Support downloading ingress / egress nodes list
  • Add unchanged_since in index.html
  • Change updated_at in index.html
  • Add example code in index.html
  • Add type annotations

FAQ

How to obtain an access token?

Please contact wangyihanger@gmail.com.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdnmon-0.5.14.tar.gz (24.5 kB view hashes)

Uploaded Source

Built Distribution

cdnmon-0.5.14-py3-none-any.whl (55.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page