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-venvto any name you likepython -m venv crawler-venvFor Windows CMD, use the following command:
crawler-venv\scripts\activateFor Windows Power Shell, make sure you Run as Administrator and use the following command:
Set-ExecutionPolicy Unrestricted -Force crawler-venv\scripts\activateFor 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