A script that automatically interacts with router's config pages and disables DHCP.
-
Clone the repo to any directory you want
git clone https://github.com/nyu-mlab/router-scraper.git cd router-scraper
-
Download the Chrome driver from chromedriver and put it in the directory. You can also down load Firefox driver from geckodriver.
-
(Option) You can set up a python virtual environment before running project, you can also change the virtual environment name
crawler-venv
to any name you likepython -m venv crawler-venv
For Windows CMD, use the following command:
crawler-venv\scripts\activate
For Windows Power Shell, make sure you Run as Administrator and use the following command:
Set-ExecutionPolicy Unrestricted -Force crawler-venv\scripts\activate
For Linux and MacOS, use the following command:
source snow-venv/bin/activate
-
Install the dependency and run the code
pip install -r requirements.txt python crawler.py
- Implement code for Router need a password to log in situation