Skip to content

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

License

Notifications You must be signed in to change notification settings

morsisko/TD-W8970

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TD-W8970

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

Installation

pip install TDW8970

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages