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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TDW8970-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file TDW8970-0.1.0.tar.gz.

File metadata

  • Download URL: TDW8970-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.4

File hashes

Hashes for TDW8970-0.1.0.tar.gz
Algorithm Hash digest
SHA256 feb01caee9bd5b7b759b471ee55cb468de40caa82b6dc583398e3b404fd25bc1
MD5 122cdc8f9a69caa81ce2b72e7b440c06
BLAKE2b-256 426d0a1a7286ab351863a7600038b2405c0098644fe1e88b8c527c716addcbac

See more details on using hashes here.

File details

Details for the file TDW8970-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: TDW8970-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.4

File hashes

Hashes for TDW8970-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6396a8390503b188eb7680804cf18d6f3becb0a83738a2a2daf8fd6c1fd131b0
MD5 d482ea03dd4df67d89325e12caab259f
BLAKE2b-256 9ecea5f148779c7e346553a3a42a0b44b4d80f24ad74bdc42c384d68880331e7

See more details on using hashes here.

Supported by

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