D
D
Dmitry2017-02-03 13:52:15
Python
Dmitry, 2017-02-03 13:52:15

How to parse the router page in order to collect clients connected to it?

Given: D-link dir860l router, Python programming language (requests, bs4)
In general, the problem is that I log in to the web face of the router, go to the page with wifi clients and collect all the information, but the client information itself is loaded into the form a little later
how to force the code is to wait for the information to be loaded and display its
silenium do not offer because you need to do without calling extra windows like the browser
telnet, ssh, snmp is not supported
please help those google forums and dances with tambourines do not help

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ruslan Fedoseev, 2017-02-03
@martin74ua

parse the web interface

G
grafist02511, 2017-02-03
@grafist02511

In routers where there is telnet and busybox, you can find out how many users (ip and mac) with the cat /proc/net/arp command. telnetlib library required

E
Eugene, 2017-02-03
@misant

Does the router know how to ssh? If yes, then paramiko and ssh commands there.

V
Vladimir Kuts, 2017-02-03
@fox_12

SNMP protocol
As an implementation example
https://geektimes.ru/post/256262/
In python, this data can be obtained through the appropriate library for the snmp protocol

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question