Skip to main content

A library for scraping ADSL connection statistics from TD-W8970 router.

Project description

TD-W8970

Python library for scraping ADSL connection statistics from TD-W8970 router.

Create router object

router = router.Router(username="admin", password="admin")

You need to specify:

  • Username - your router login (default: admin)
  • Password - your router password (default: admin)
  • Host - default gateway (default: 192.168.1.1)

Get data

stats = router.get(timeout=60)

You may specify:

  • Timeout - in sec (default: 10s)

You may retrieve

  • status_code - http status code (200 == OK)
  • downstreamCurrRate
  • downstreamMaxRate
  • upstreamCurrRate
  • upstreamMaxRate
  • downstreamNoiseMargin
  • downstreamAttenuation
  • upstreamNoiseMargin
  • upstreamAttenuation
  • downstreamPower
  • upstreamPower

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

TDW8970-0.1.0.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

TDW8970-0.1.0-py3-none-any.whl (3.3 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