D-Link Scraper
This is a library that gets information from your D-Link DWR-921 (and possible others) LTE router admin page using web scraping
This package contains
- library
dlinkscraper- which you can use to scrape data from D-Link DWR-921 LTE router (I don't know if it will work on others, I have only this one :P) - CLI tool
dlinkscraperthat you can use to get info from console dlinkscraper-duckdns-updatescript, which updates your DuckDNS IP (and it's also the reason why I created this package :D)
Library usage example
from dlinkscraper import DLink
dl = DLink('http://192.168.1.1') # Change this if yours has different IP
dl.login('admin', <PASSWORD>)
dl.get_main_site()
print(dl.isp_name)
# You should always log out if you don't want to get "admin is already logged in" later
dl.logout()
CLI usage
Just run dlinkscraper from terminal and follow the instructions
DuckDNS script usage
Provide all required variables listed in --help. Example:
dlinkscraper-duckdns-update --token <YOUR_DUCKDNS_TOKEN> --domain <YOUR_DOMAIN> -p <ROUTER_PASSWORD>
Metadata
Release files for dlink-scraper 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dlink-scraper-1.0.3.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dlink_scraper-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / dlink-scraper-1.0.3.tar.gz
| Download URL | dlink-scraper-1.0.3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
202da16595335837a78e88358e26d432bcff8603ce73432f2ecda63699aac5c6
|
|
BLAKE2b-256 checksum How to use checksums |
b5dc340d1cc8ce5fac41a8c639a99c399bbf1041f8fe2a63269f7b24fd26a602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
|
Release files / dlink_scraper-1.0.3-py3-none-any.whl
| Download URL | dlink_scraper-1.0.3-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47cadbd68a893f6208e1a385f5ca46fa808856c58334efc46c19faa0d576afb8
|
|
BLAKE2b-256 checksum How to use checksums |
ebc5a096b41a754efe5982ca12f9b2ac722f03ec899cff39105eee1dd9c2d363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
|